# Docker Compose

> What is Docker Compose and why is it used? How do services in a Compose file talk to each other?

Canonical: https://www.internhack.in/learn/interview/docker-containers/docker-compose-purpose
Last updated: 2026-11-28

Difficulty: Beginner

## Question

What is Docker Compose and why is it used? How do services in a Compose file talk to each other?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

Docker Compose, compose.yaml, Service Discovery, depends_on, Multi-container Apps

Previous: [COPY vs. ADD](https://www.internhack.in/learn/interview/docker-containers/docker-copy-vs-add) · Next: [Networking Drivers](https://www.internhack.in/learn/interview/docker-containers/docker-networking-drivers) · [All of Docker & Containers](https://www.internhack.in/learn/interview/docker-containers)

## More Docker & Containers questions

- [Graceful Shutdown (Stop vs Kill)](https://www.internhack.in/learn/interview/docker-containers/docker-container-killing-graceful)
- [Dockerizing Node.js Apps](https://www.internhack.in/learn/interview/docker-containers/dockerize-node-app-best-practices)
- [Container Security](https://www.internhack.in/learn/interview/docker-containers/docker-security-best-practices)
- [Troubleshooting & Logs](https://www.internhack.in/learn/interview/docker-containers/docker-logs-troubleshooting)
- [Layering & Copy-on-Write](https://www.internhack.in/learn/interview/docker-containers/docker-storage-layers-copy-on-write)
- [.dockerignore](https://www.internhack.in/learn/interview/docker-containers/docker-ignore-file)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Docker & Containers](https://www.internhack.in/learn/interview/docker-containers)
