Add the following to your docker-compose.yml file:
nginx:
image: yappabe/nginx
ports:
- 80:80
links:
- php
volumes_from:
- app
environment:
DOCUMENT_ROOT: /var/www/app/html
INDEX_FILE: app_dev.php
PHP_FPM_SOCKET: php:9000
To use a specific Nginx version, append the version number to the image name.
Eg: image: yappabe/nginx:1.9
The following Nginx versions are available:
Content type
Image
Digest
sha256:23b98e1ce…
Size
73.2 MB
Last updated
over 8 years ago
docker pull yappabe/nginx