nginx image configured with Confd. This image is meant to run behind a load balancer like Traefik
/!\ Since I need to use Brotli compression algorithm, NGINX is compiled with it available, enjoy!
This image is made to be used in conjunction with a php-fpm image [like mine] (https://github.com/fullfrontend/php-fpm)
I use docker compose to handle my stack so here is my nginx config:
nginx:
image: fullfrontend/nginx
ports:
- 80
environment:
PHP_UPSTREAM: "php-runner:9000"
VIRTUAL_HOST: "fullfrontend.dev"
DOCUMENT_ROOT: "/var/www/fullfrontend/"
volumes_from:
- application
- PHP_UPSTREAM: where is running php-fpm
- VIRTUAL_HOST: host name to respond to
- DOCUMENT_ROOT: where the files are located
A Full working example using docker-compose is available in the example folder