Define and run complex applications using Docker on Raspberry Pi
Clone or download
Pull request Compare This branch is 11 commits ahead, 4203 commits behind docker:master.
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin Rename binary to docker-compose and config file to docker-compose.yml Jan 20, 2015
compose Bump 1.2.0 Apr 16, 2015
contrib/completion/bash Merge pull request docker#1278 from albers/completion-run-user Apr 16, 2015
docs Bump 1.2.0 Apr 16, 2015
script Merge tag '1.2.0' into raspbian Apr 19, 2015
tests Merge pull request docker#1261 from aanand/fix-vars-in-volume-paths Apr 9, 2015
.dockerignore Add script which runs Fig inside Docker Feb 20, 2015
.gitignore Rename binary to docker-compose and config file to docker-compose.yml Jan 20, 2015 Bump 1.2.0 Apr 16, 2015 Run tests using Docker-in-Docker so we can test multiple versions Mar 9, 2015
Dockerfile fix for raspbian build Apr 19, 2015
LICENSE Docker, Inc. Jul 24, 2014
MAINTAINERS Remove @d11wtq as a maintainer Feb 27, 2015 add bash completion to sdist Feb 28, 2015 Link to arm-compose Dec 7, 2015 Document Swarm integration Feb 25, 2015 Document Swarm integration Feb 25, 2015
requirements-dev.txt Update pep8, fix errors and freeze requirements-dev.txt Feb 11, 2015
requirements.txt Revert "Remove restriction for requests version, update docker-py req… Mar 23, 2015 Update docker-py and requests version ranges Mar 23, 2015
tox.ini Resolves docker#927 - fix merging command line environment with a lis… Mar 2, 2015
wercker.yml Run pyinstaller build as normal user Sep 30, 2014

Docker Compose

(Previously known as Fig)

Compose is a tool for defining and running complex applications with Docker. With Compose, you define a multi-container application in a single file, then spin your application up in a single command which does everything that needs to be done to get it running.

Compose is great for development environments, staging servers, and CI. We don't recommend that you use it in production yet.

Using Compose is basically a three-step process.

First, you define your app's environment with a Dockerfile so it can be reproduced anywhere:

FROM hypriot/rpi-python:latest
ADD requirements.txt /code/
RUN pip install -r requirements.txt
ADD . /code
CMD python

Next, you define the services that make up your app in docker-compose.yml so they can be run together in an isolated environment:

  build: .
   - db
   - "8000:8000"
  image: hypriot/rpi-redis

Lastly, run docker-compose up and Compose will start and run your entire app.

Compose has commands for managing the whole lifecycle of your application:

  • Start, stop and rebuild services
  • View the status of running services
  • Stream the log output of running services
  • Run a one-off command on a service

Installation and documentation

Update Newer versions are built with the hypriot/arm-compose repo and uploaded to Hypriot's Schatzkiste. Please have a look at the installation steps over there.

  • Full documentation is available on Docker's website.
  • Hop into #docker-compose on Freenode if you have any questions.


![Build Status]( Master)

Want to help build Compose? Check out our contributing documentation.