I use to specify a different default database when Postgres first startup using the POSTGRES_DB environment variable.
How do I set this in Stolon?
I use to specify a different default database when Postgres first startup using the POSTGRES_DB environment variable.
How do I set this in Stolon?
@myazid The POSTGRES_DB env var is not something related to postgreSQL. I suspect you’re talking about the env var provided by the official postgres docker image and used by its startup script: postgres/docker-entrypoint.sh at master · docker-library/postgres · GitHub
Stolon isn’t related to docker (we just provide an example docker image). So just do you’ll do with a standalone postgresql with the unique difference to connect to it using the stolon proxy (and wait until the cluster is ready).