#Docker Compose
3 posts
9 min read
Docker in Practice #2: Django + PostgreSQL compose — Two Containers as One
Bundling a Django app and PostgreSQL into one docker compose file. Migration entrypoint, depends_on relying on healthcheck, data volumes, .env separation, and collectstatic — a production-shaped compose setup.
8 min read
Docker Intermediate #4: Compose Deep Dive — depends_on, healthcheck, profiles
Adding operational sense to compose.yaml. healthcheck for whether the DB is actually ready, depends_on with conditions for meaningful startup order, and profiles to fork dev/test/prod inside one file. Plus override files and restart policies.
8 min read
Docker Intermediate #3: docker compose Basics — web + db in One File
A tool for defining several containers in one file and starting them with a single command. The service / network / volume structure of compose.yaml, a real web + postgres setup, and the day-to-day flow of up/down/logs/ps.