POSTGRES_PASSWORD
POSTGRES_USER
PGDATA
POSTGRES_DB
POSTGRES_INITDB_ARGS
Environment variables can be overridden using below three methods depending on your case.
Run Image: If running docker image directly, use below to include environment variable in docker run with -e K=V. Like mentioned here https://docs.docker.com/engine/reference/run/
Dockerfile: If you need to specify the environment variable in Dockerfile, specify as mentioned below
ENV POSTGRES_PASSWORD=secrect
ENV POSTGRES_USER=postgres
No comments:
Post a Comment