summaryrefslogtreecommitdiff
path: root/devdocs/docker/compose%2Fsamples-for-compose%2Findex.html
blob: 1393d9906ee6427747d636cd486c4c868843a191 (plain)
1
2
3
4
5
6
7
8
9
10
11
<h1>Sample apps with Compose</h1>
<p>The following samples show the various aspects of how to work with Docker Compose. As a prerequisite, be sure to <a href="../install/index">install Docker Compose</a> if you have not already done so.</p> <h2 id="key-concepts-these-samples-cover">Key concepts these samples cover</h2> <p>The samples should help you to:</p> <ul> <li>define services based on Docker images using <a href="../compose-file/index">Compose files</a> <code class="language-plaintext highlighter-rouge">docker-compose.yml</code> and <code class="language-plaintext highlighter-rouge">docker-stack.yml</code> files</li> <li>understand the relationship between <code class="language-plaintext highlighter-rouge">docker-compose.yml</code> and <a href="../../engine/reference/builder/index">Dockerfiles</a>
</li> <li>learn how to make calls to your application services from Compose files</li> <li>learn how to deploy applications and services to a <a href="../../engine/swarm/index">swarm</a>
</li> </ul> <h2 id="samples-tailored-to-demo-compose">Samples tailored to demo Compose</h2> <p>These samples focus specifically on Docker Compose:</p> <ul> <li> <p><a href="https://docs.docker.com/samples/django/">Quickstart: Compose and Django</a> - Shows how to use Docker Compose to set up and run a simple Django/PostgreSQL app.</p> </li> <li> <p><a href="https://docs.docker.com/samples/rails/">Quickstart: Compose and Rails</a> - Shows how to use Docker Compose to set up and run a Rails/PostgreSQL app.</p> </li> <li> <p><a href="https://docs.docker.com/samples/wordpress/">Quickstart: Compose and WordPress</a> - Shows how to use Docker Compose to set up and run WordPress in an isolated environment with Docker containers.</p> </li> </ul> <h2 id="awesome-compose-samples">Awesome Compose samples</h2> <p>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 <a href="https://github.com/docker/awesome-compose" target="_blank" rel="noopener" class="_">Awesome-compose GitHub repo</a>.</p> 
<p><a href="https://docs.docker.com/search/?q=documentation">documentation</a>, <a href="https://docs.docker.com/search/?q=docs">docs</a>, <a href="https://docs.docker.com/search/?q=docker">docker</a>, <a href="https://docs.docker.com/search/?q=compose">compose</a>, <a href="https://docs.docker.com/search/?q=samples">samples</a></p>
<div class="_attribution">
  <p class="_attribution-p">
    &copy; 2019 Docker, Inc.<br>Licensed under the Apache License, Version 2.0.<br>Docker and the Docker logo are trademarks or registered trademarks of Docker, Inc. in the United States and/or other countries.<br>Docker, Inc. and other parties may also have trademark rights in other terms used herein.<br>
    <a href="https://docs.docker.com/compose/samples-for-compose/" class="_attribution-link">https://docs.docker.com/compose/samples-for-compose/</a>
  </p>
</div>