Small footprint nginx image with a default php config.
| Setting | Default |
|---|---|
| NGINX_SERVER_NAME | nginx |
| NGINX_ROOT | /www |
| NGINX_ACCESS_LOG | stdout |
| NGINX_ERROR_LOG | stdout |
| NGINX_ERROR_LOG_LEVEL | error |
| PHP_FPM_URI | 127.0.0.1:9000 |
services:
# using defaults
nginx:
image: rexsoftware/nginx:latest
ports:
- 8080:80
volumes:
- my-app/public:/www
# using environment variables
nginx-custom:
image: rexsoftware/nginx:latest
environment:
- NGINX_ROOT=/app/public
- NGINX_SERVER_NAME="my-cool-app.io"
ports:
- 8080:80
volumes:
- my-app:/app
docker pull rexsoftware/nginx:latest
docker run -v my-site:/www -p 8080:80 rexsoftware/nginx:latest
FROM rexsoftware/nginx:latest
COPY site.conf /etc/nginx/conf.d/default.conf
CMD [ '/start/start.sh' ]
Content type
Image
Digest
Size
2.8 MB
Last updated
over 5 years ago
docker pull rexsoftware/nginx