Your Postgres container runs, but every login fails with password authentication failed for user "postgres" . Or psql inside the container says role "root" does not exist . Or the container exits right away with Database is uninitialized and superuser password is not specified .
Source: [Dev.to](https://dev.to/deploylark/postgresql-in-docker-fix-password-authentication-failed-57j5)