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 user_name WITH PASSWORD ‘new_password’; 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?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Oh god, this is exactly what’s happening to me too! I was using a “postgres” and “password” user just for testing though and I thought I received some automated attack that changed multiple times the user pwd.
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.