Nginx from official image with embedded wait-for-it and healthcheck support
388
Maintained by: Move Your Digital
Nginx Dockerfile from official image with healthcheck, wait-for-it and netcat.
docker run --name my-nginx-app -v /some/content:/usr/share/nginx/html:ro -p80:80 -d moveyourdigital/nginx
Using wait-for-it command to wait for FPM upstream to be ready
version: "3.9"
services:
nginx:
image: moveyourdigital/nginx
environment:
NGINX_HOST: 127.0.0.1
NGINX_PORT: 80
FASTCGI_HOST: fpm
FASTCGI_PORT: 9000
entrypoint: [
"wait-for-it", "fpm:9000", "--",
"/docker-entrypoint.sh",
"nginx", "-g", "daemon off;"
]
fpm:
image: php:8.1-fpm
Have a look to the Github repository for a comprehensive example.
Content type
Image
Digest
Size
67.6 MB
Last updated
about 4 years ago
docker pull moveyourdigital/nginx