I’m running 2 web apps and postgres in docker containers inside a digitalocean droplet and every once in a little while postgres docker resets user password but data remains. This makes application fails calling postgres db. I’d have to access ssh and run ALTER USER username WITH PASSWORD ‘newpassword’; to fix it every time them it’d run fine for a day or two sometimes more.

Here is the log before the error occurs:
https://imgur.com/FxwiDMY

Has anyone seen any similar problems or any idea what’s going on?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hi there @engineersdope,

This is quite interesting, I manage an environment with a few PostgreSQL instances all running in separate Docker containers and I’ve not hit this problem.

Do you use Docker Compose to deploy your containers or any other automated way?

Also, do you see anything strange in the logs of your PostgreSQL containers?

Regards,
Bobby

Submit an Answer