UVDesk with php-fpm + nginx in Docker #808
tbfpartner
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First off... i did this just as a test - hence it is still running as root (which is not best practice of course!)
I have changed the way this software is deployed through docker. Instead of using the existing Dockerfile & configs, I opted in for php-fpm + nginx. The whole software runs as a docker stack with multiple containers (one for each microservice: php-fpm, nginx, mariadb).
It also uses a new logic for setup, as mentioned in this PR: #807
Files
docker.zip
nginx.conf.template
contains the webserver config with a variablenginx.entrypoint.sh
take that template and substitutes the variable - nothing elsephp.ini
just contains what the current projectsphp.ini
contains -> memory_limit=1024Mphp.entrypoint.sh
basically just runs the new commandphp bin/console uvdesk:configure-helpdesk -n
to automatically setup UVDesk.Dockerfile
is a two-step build, first building a php container, then a nginx container. It installs all necessary software, copies the source, (runs php composer) and sets up the entrypoints.Logic
I use Docker Swarm + Traefik Reverse Proxy. Adjust certain parts accordingly!
After the successful build, i use a docker-compose.yml to instruct docker, how to start the container stack.
Beta Was this translation helpful? Give feedback.
All reactions