Docker Compose deployment fails because PostgreSQL has no password
Error recorded 72 times in PanelAlpha Engine deploys on Docker Compose. The deploy log below is the recorded failure output.
TypeErrorAn error that occurred in the deployed application. It is not necessarily a PanelAlpha Engine error, but we keep working on improvements so you run into fewer of them.
Seen72 times · 11 variants
WhereDocker Compose
StatusObserved (2.1.0)Our team will look into this soon, verify the cause and try to fix it in an upcoming release.
Why it happens
The Compose stack starts PostgreSQL before the application, but no non-empty POSTGRES_PASSWORD was provided. Engine created an empty .env and found no configured environment variables, so PostgreSQL remained unhealthy and blocked the application container.
What the log looks like
Deploy log
Starting application (docker compose up -d)Container project-postgres-1 StartedContainer project-postgres-1 WaitingContainer project-postgres-1 Error dependency postgres failed to startpostgres-1 | Error: Database is uninitialized and superuser password is not specified.postgres-1 | You must specify POSTGRES_PASSWORD to a non-empty value dependency failed to start: container project-postgres-1 is unhealthy