You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the official PostgreSQL Docker imnage (postgresql:11-alpine) from Docker HUB registry.
I want to create the PostgreSQL administrator password in a safe way.
Currently, this image offer to set it using environment variable:
Using environment variables is not really safe as it can be seen after initialization by anyone having access to the host.
There is another option for setting the password but that only work in docker swarm.
In this image, how can I set the PostgreSQL administrator, securely, and without manual step during initial deployment?Using Docker and PostgreSQL: How can I set administrator password in official postgresql image? (But securely, not a living environment variable)