W3cubDocs

/Docker 17

Sample apps with 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 in 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:

Samples that include Compose in the workflows

These samples include working with Docker Compose as part of broader learning goals:

  • Get Started with Docker - This multi-part tutorial covers writing your first app, data storage, networking, and swarms, and ends with your app running on production servers in the cloud.

  • Deploying an app to a Swarm - This tutorial from Docker Labs shows you how to create and customize a sample voting app, deploy it to a swarm, test it, reconfigure the app, and redeploy.

documentation, docs, docker, compose, samples

© 2017 Docker, Inc.
Licensed under the Apache License, Version 2.0.
Docker and the Docker logo are trademarks or registered trademarks of Docker, Inc. in the United States and/or other countries.
Docker, Inc. and other parties may also have trademark rights in other terms used herein.
https://docs.docker.com/compose/samples-for-compose/