A container showing how to acquire environment variables at runtime for application configuration.
378
An nginx container showing how to acquire and save environment variables at runtime (useful for Kubernetes and deployment of single page application frameworks like Angular).
Pull it.
docker pull oneoffcoder/nginx-env:latest
Run it.
docker run -it -p 80:80 oneoffcoder/nginx-env
Observe it.
docker exec -it [CONTAINER_ID] cat /usr/share/nginx/html/env.json
Content type
Image
Digest
Size
22.3 MB
Last updated
about 7 years ago
docker pull oneoffcoder/nginx-env