See "Using environment variables in nginx configuration" at official nginx image page
docker run --rm -e NGINX_PORT=7777 -e NGINX_HOST=localhost -p 8080:7777 nginx-with-env:1.21.1-alpine
Content type
Image
Digest
Size
9.5 MB
Last updated
about 5 years ago
docker pull a00s/nginx-with-env:1.21.1-alpine