Docker Compose: startup, networking and configuration

Compose is easy until the container starts and behaves differently from the file. The entries here cover the four places where that happens most often: startup order (the app connects before Postgres accepts connections), networking (a published port that bypasses the firewall), configuration (a .env change the running container never sees) and data (a backup nobody ever restored). Every blueprint gives the command that reproduces the problem and the command that proves the fix — the value inside the container, not the value in the file.

Startup and configuration

Network and exposure

Backups

Other topics: PostgreSQL constraints, triggers and vector search · Home Assistant: entities, automations and device states