Here is an unofficial Dockerfile for nginx.
You can find several versions of this image in the dedicated docker hub page.
It is a pretty light image: ~ 10 MB uncompressed.
Get it:
docker pull diegograssato/nginx
Run it:
docker run -d -p 80:80 -p 443:443 --name web diegograssato/nginx
nginx:
image: diegograssato/nginx
ports:
- 80:80
- 443:443
environment:
DOCUMENT_ROOT: /var/www/symfony/web
DNSDOCK_ALIAS: symfony.dev
INDEX_FILE: app_dev.php
PHP_FPM_SOCKET: sf_php7:9011
Just clone this repo and run:
docker build -t diegograssato/nginx .
docker push diegograssato/nginx
Content type
Image
Digest
Size
7.7 MB
Last updated
over 8 years ago
docker pull diegograssato/nginx