Skip to content
Nginx docker image for Symfony 3
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Nginx image for Symfony3

Nginx container for Symfony 3 applications. Symfony is not installed in the Image.

Document Root

The required document root for symfony is set to <your symfony project>/web. This is de recommended setup for symfony production.

Environment variables


By setting DNS_RESOLVER you can make sure that nginx will run without the fastcgi already available. Nginx will resolve the name of the application container via DNS. When you set DNS_RESOLVER to 'auto' the value set in /etc/resolv.conf inside the container will be used by nginx for resolving (This will default to docker interal dns resolving). If you want to use an external resolver you can also set a specific ipv4 address.

Overriding or adding extra configuration for nginx

When there is a need to add additional configuration to your nginx config you can add a config file in the /etc/nginx/include/overrides.conf location. That file is included in the default server configuration. You can for example add additional configuration for a maintenance page. Or you could set client_max_body_size, ...

$ docker run -v /path/to/overrides.conf:/etc/nginx/include/overrides.conf dockerwest/nginx-symfony3:<version>

Nginx versions

The following Nginx versions are available:

  • stable: last stable version of nginx
  • mainline: last mainline version of nginx


The following images are available:

  • dockerwest/nginx-symfony3:stable
  • dockerwest/nginx-symfony3:mainline


MIT License (MIT). See License File for more information.

You can’t perform that action at this time.