Sign inSign up

oneoffcoder/nginx-env

By oneoffcoder

•Updated about 7 years ago

A container showing how to acquire environment variables at runtime for application configuration.

Image
0

378

oneoffcoder/nginx-env repository overview

⁠Purpose

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).

⁠Source

GitHub⁠

⁠Docker

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

Tag summary

Content type

Image

Digest

Size

22.3 MB

Last updated

about 7 years ago

docker pull oneoffcoder/nginx-env