Tag: Docker Compose

Browse all articles, tutorials, and guides about Docker Compose

Posts

Docker
2025-04-25|9 min read

Connecting to PostgreSQL in a Docker Container from Outside

Expose PostgreSQL safely and connect from your host or another machine using Docker and Docker Compose. Covers port publishing, listen addresses, pg_hba.conf basics, and common troubleshooting.

Docker
2025-01-29|9 min read

How to Add a Volume to an Existing Docker Container

You cannot change mounts on a running container, but you can safely recreate it with the desired volume. This guide shows exact commands for Docker CLI and Docker Compose, plus ways to migrate or seed data.

Docker
2025-01-01|7 min read

What’s the Difference Between Docker Compose vs. Dockerfile?

Understand the key differences between Docker Compose and Dockerfile, and learn when to use each in your containerized workflows.

Docker
2024-12-25|8 min read

Docker Compose: Wait for Container X Before Starting Y

Learn how to configure Docker Compose to ensure one container starts only after another is ready.

Docker
2024-12-15|6 min read

Docker Compose: Understanding Ports vs Expose

Learn the key differences between ports and expose in Docker Compose, when to use each one, and how they affect container networking and security in your applications.

Docker
2024-12-10|8 min read

Communication Between Multiple Docker-Compose Projects

Learn how to enable communication between multiple Docker-Compose projects using shared networks and environment configurations.

Docker
2024-12-10|7 min read

How to Execute Multiple Commands in Docker Compose

Learn different techniques for running multiple commands in Docker Compose services, from simple command chaining to advanced multi-stage initialization scripts.

Docker
2024-12-05|7 min read

How to Rebuild a Docker Container in docker-compose.yml?

Learn how to rebuild Docker containers defined in a docker-compose.yml file, including tips for managing changes and dependencies.

Docker
2024-07-18|5 min read

How to Restart a Single Container with Docker Compose

Learn how to restart a specific container in a Docker Compose setup without affecting other services.

Docker
2024-06-02|6 min read

Interactive Shell Using Docker Compose

Learn how to start an interactive shell in a Docker Compose service for debugging and development.