Working with Docker is pretty straight forward. The image available on Docker Hub contains the application code, any precompiled assets as well as PHP installed. This means you can use any web server you want, any cache driver you want and any database system you want.
To make things easier, we provide a Docker Compose file (docker-compose.production.yml) in the repository which contains all needed services, perfectly configured to just run the application right away.
All files you need are
nginx.conf. Copy both to the directory you
want to use for the application.
Now open the
.env.docker file and follow the instructions inside the file. All needed variables you have to configure
are marked accordingly.
This step is optional but may depend on your setup. You probably want to run the app standalon on a server. For this I
highly recommend providing SSL certificates (Let’s Encrypt) and change the
well as the
listen 0.0.0.0:8085 ssl;
nginx.conf: uncomment the lines beginning with
ssl_certificateand change the certificate file names
docker-compose.production.yml: uncommend the
/path/to/ssl/certificates:/bitnami/nginx/conf/bitnami/certsline and set the correct path to your certificates before the colon.
After you completed the above steps, run the following command to start up the container setup:
docker-compose up -d --build
As of now, Linkace does not support a standalone installer like Wordpress. To be able to use the app you have to
prepare the database and register an admin account for yourself. First, initialize the database.
Please note that
linkace_php_1 is the name of your PHP container here. It may differ from your name. You will find
the name of your container in the output of the previous command, but will most likely and with
docker exec -it linkace_php_1 bash -c "php artisan migrate --seed"
Now register a new user for yourself. Replace
yourname with a username consisting of letters and numbers, and
firstname.lastname@example.org with your actual email. You then have to set a password.
docker exec -it linkace_php_1 bash -c "php artisan registeruser yourname email@example.com"
You can now use LinkAce.
Next Step: Post-Setup Steps