Skip to content

fullfrontend/nginx-symfony

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nginx-symfony

A Docker container to run Symfony with NGINX, with Brotli and every optimization in mind. This image is meant to run behind a load balancer like [Traefik] (https://traefik.io/)

How to use this image

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-symfony
    ports:
        - 80
        
    environment:
        PHP_UPSTREAM: "php-runner:9000"
        VIRTUAL_HOST: "fullfrontend.dev"
        DOCUMENT_ROOT: "/var/www/fullfrontend/"

    volumes_from:
        - application

Environment variables

  • PHP_UPSTREAM: where is running php-fpm
  • VIRTUAL_HOST: host name to respond to
  • DOCUMENT_ROOT: where the files are located

Example

A Full working example using docker-compose is available in the example folder

About

My Docker container to run symfony with nginx

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors