---
title: "#docker-compose articles | Hashnode"
description: "Explore 1,533 articles tagged #docker-compose on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/docker-compose"
---

Tag

# #docker-compose

1,533 posts · 760 followers

[ShipKit](https://hashnode.com/@shipkit) · [4d ago](https://hashnode.com/posts/run-database-migrations-before-your-app-starts-in-docker-compose-with-service-completed-successfully/6af489705ea01fe999646580)

### [Run database migrations before your app starts in Docker Compose with service\_completed\_successfully](https://shipkit.hashnode.dev/run-database-migrations-before-your-app-starts-in-docker-compose-with-service-completed-successfully?utm_source=hashnode&utm_medium=feed)

Your app expects its tables to exist by the time it takes its first request, so the migrations have to run first. In Docker Compose you can give that work its own short-lived service: it waits for the

7 min read · [shipkit.hashnode.dev](https://shipkit.hashnode.dev/run-database-migrations-before-your-app-starts-in-docker-compose-with-service-completed-successfully?utm_source=hashnode&utm_medium=feed)

[octave Nkurunziza](https://hashnode.com/@octave) · [5d ago](https://hashnode.com/posts/how-to-run-a-cron-job-in-a-docker-container-with-logs/6af3446f36a9aed143d44959)

### [How to run a cron job in a Docker container (with logs)](https://octave.hashnode.dev/how-to-run-a-cron-job-in-a-docker-container-with-logs?utm_source=hashnode&utm_medium=feed)

Last updated: 5 November 2026 · Applies to Debian-based images (python:3.13-slim, Debian 13 trixie) with Debian cron 3.0pl1, Alpine 3.24, supercronic 0.2.51, Docker Compose v2+ You want a script to ru

14 min read · [octave.hashnode.dev](https://octave.hashnode.dev/how-to-run-a-cron-job-in-a-docker-container-with-logs?utm_source=hashnode&utm_medium=feed)

[octave Nkurunziza](https://hashnode.com/@octave) · [5d ago](https://hashnode.com/posts/docker-compose-postgresql-environment-variables-explained/6af32a467134c7852feb91fa)

### [Docker Compose PostgreSQL environment variables, explained](https://octave.hashnode.dev/docker-compose-postgresql-environment-variables-explained?utm_source=hashnode&utm_medium=feed)

Set POSTGRES\_PASSWORD, USER and DB in Docker Compose the right way: a working .env file, why a new password gets ignored, and how to fix each error.

14 min read · [octave.hashnode.dev](https://octave.hashnode.dev/docker-compose-postgresql-environment-variables-explained?utm_source=hashnode&utm_medium=feed)

[Hritik ranjan](https://hashnode.com/@luvranjan143) · [Nov 9](https://hashnode.com/posts/devops-learning-tracker-kubernetes-minikube/6af1830a97c64d348b05898b)

### [Building a Three-Tier DevOps Learning Tracker on Kubernetes with Minikube — Complete End-to-End Guide](https://blogs.hritikranjan.in/devops-learning-tracker-kubernetes-minikube?utm_source=hashnode&utm_medium=feed)

From Docker Compose to Kubernetes — Architecture, Deployment, Persistent Storage, Real Troubleshooting, Bugs, Fixes, and DevOps Interview Learnings

53 min read · [blogs.hritikranjan.in](https://blogs.hritikranjan.in/devops-learning-tracker-kubernetes-minikube?utm_source=hashnode&utm_medium=feed)

[ShipKit](https://hashnode.com/@shipkit) · [Nov 4](https://hashnode.com/posts/depends-on-isn-t-enough-making-a-compose-app-wait-until-postgres-is-actually-ready/6aea9e8f7e6839cf5b941297)

### [depends\_on isn't enough: making a Compose app wait until Postgres is actually ready](https://shipkit.hashnode.dev/depends-on-isn-t-enough-making-a-compose-app-wait-until-postgres-is-actually-ready?utm_source=hashnode&utm_medium=feed)

Your app and Postgres start together with docker compose up. Some days the app connects, other days it fails because the database isn't accepting connections yet. Run it again and it may connect. Here

6 min read · [shipkit.hashnode.dev](https://shipkit.hashnode.dev/depends-on-isn-t-enough-making-a-compose-app-wait-until-postgres-is-actually-ready?utm_source=hashnode&utm_medium=feed)

[jabo Landry](https://hashnode.com/@Arnold-Jabo) · [Nov 3](https://hashnode.com/posts/how-to-automate-docker-image-creation-for-postgres-using-shell/6aea2aaffbe759481e70cb16)

### [How to Automate Docker Image Creation for Postgres Using Shell Commands](https://freecodecamp.org/news/how-to-automate-docker-image-creation-for-postgres-using-shell?utm_source=hashnode&utm_medium=feed)

If you have certain lines of code that repeat over and over again in a project, there's a pretty standard solution for it: using a function. But what about when you have the same project file setup th

17 min read · [freecodecamp.org](https://freecodecamp.org/news/how-to-automate-docker-image-creation-for-postgres-using-shell?utm_source=hashnode&utm_medium=feed)

[Yuvraj.R](https://hashnode.com/@yuvi21) · [Nov 3](https://hashnode.com/posts/stop-writing-docker-files-manually-try-docker-init-with-a-python-flask-app/6aea05fbcc5c8405a1ee9bb9)

### [Stop Writing Docker Files Manually! Try Docker Init with a Python Flask App](https://build-break-fix-diaries-with-yuvrajj.hashnode.dev/stop-writing-docker-files-manually-try-docker-init-with-a-python-flask-app?utm_source=hashnode&utm_medium=feed)

Have you ever started a project and wondered what to write inside a Dockerfile? What about creating a Docker Compose file and a .dockerignore file from scratch?

7 min read · [build-break-fix-diaries-with-yuvrajj.hashnode.dev](https://build-break-fix-diaries-with-yuvrajj.hashnode.dev/stop-writing-docker-files-manually-try-docker-init-with-a-python-flask-app?utm_source=hashnode&utm_medium=feed)

[Amaresh Pelleti](https://hashnode.com/@amareswer) · [Nov 3](https://hashnode.com/posts/ollama-docker-setup-gpu-volumes-and-compose/6ae9e5288f1061591079d4b9)

### [Ollama Docker Setup: GPU, Volumes and Compose](https://devtoolhub.hashnode.dev/ollama-docker-setup-gpu-volumes-and-compose?utm_source=hashnode&utm_medium=feed)

Originally published on DevToolHub. Running Ollama in a container takes one docker run command. That command also decides two things the docs bury: whether your models survive a rebuild, and whether

10 min read · [devtoolhub.hashnode.dev](https://devtoolhub.hashnode.dev/ollama-docker-setup-gpu-volumes-and-compose?utm_source=hashnode&utm_medium=feed)

[Hritik ranjan](https://hashnode.com/@luvranjan143) · [Nov 1](https://hashnode.com/posts/devtrack-learning-tracker/6ae74572a6e680ddca17e979)

### [🚀 DevTrack: Building a Three-Tier DevOps Learning Tracker with Docker, Flask, MySQL & Nginx](https://blogs.hritikranjan.in/devtrack-learning-tracker?utm_source=hashnode&utm_medium=feed)

A beginner-friendly, hands-on DevOps project demonstrating Docker, Docker Compose, container networking, persistent storage, health checks, environment variables, Nginx reverse proxy, CRUD APIs, and real-world troubleshooting.

43 min read · [blogs.hritikranjan.in](https://blogs.hritikranjan.in/devtrack-learning-tracker?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/devtrack-learning-tracker/6ae74572a6e680ddca17e979)

[Yuvraj.R](https://hashnode.com/@yuvi21) · [Nov 2](https://hashnode.com/posts/dockerfile-vs-docker-compose-mern-project/6ae87cf8e2c37636457b3dde)

### [Dockerfile vs Docker Compose : My MERN Project Experience](https://build-break-fix-diaries-with-yuvrajj.hashnode.dev/dockerfile-vs-docker-compose-mern-project?utm_source=hashnode&utm_medium=feed)

I deployed a MERN application using Docker and Docker Compose. This article covers the key differences and what I learned from both practicals.

3 min read · [build-break-fix-diaries-with-yuvrajj.hashnode.dev](https://build-break-fix-diaries-with-yuvrajj.hashnode.dev/dockerfile-vs-docker-compose-mern-project?utm_source=hashnode&utm_medium=feed)
