Sample apps with Compose


From the end of June 2023 Compose V1 won’t be supported anymore and will be removed from all Docker Desktop versions.

Make sure you switch to Compose V2 with the docker compose CLI plugin or by activating the Use Docker Compose V2 setting in Docker Desktop. For more information, see the Evolution of Compose

The following samples show the various aspects of how to work with Docker Compose. As a prerequisite, be sure to install Docker Compose if you have not already done so.

Key concepts these samples cover

The samples should help you to:

  • define services based on Docker images using Compose files docker-compose.yml and docker-stack.yml files
  • understand the relationship between docker-compose.yml and Dockerfiles
  • learn how to make calls to your application services from Compose files
  • learn how to deploy applications and services to a swarm

Samples tailored to demo Compose

These samples focus specifically on Docker Compose:

Awesome Compose samples

The Awesome Compose samples provide a starting point on how to integrate different frameworks and technologies using Docker Compose. All samples are available in the Awesome-compose GitHub repo and are ready to run with docker compose up.