Define and run multi-container applications with Docker
Go to file
Aanand Prasad 80991f1521 Set "VolumesFrom" when starting containers
This is necessary when working with Docker 0.10.0 and up. Fortunately,
we can set it both when creating and starting, and retain compatibility
with 0.8.x and 0.9.x.

recreate_containers() is now responsible for starting containers, as
well as creating them. This greatly simplifies usage of the Service
class.
2014-04-23 15:46:26 +01:00
bin Add script to build an OS X binary 2014-03-03 15:09:56 +00:00
docs Merge pull request #150 from muff1nman/utf8 2014-04-06 16:01:32 +01:00
fig Set "VolumesFrom" when starting containers 2014-04-23 15:46:26 +01:00
script Updates the mac build script so it wont fail when the venv folder does not exist. 2014-03-27 20:22:05 -04:00
tests Set "VolumesFrom" when starting containers 2014-04-23 15:46:26 +01:00
.gitignore Add script to build an OS X binary 2014-03-03 15:09:56 +00:00
.travis.yml Update to docker-py 0.3.1 2014-04-15 10:41:06 +01:00
CHANGES.md Ship 0.3.2 2014-03-05 14:33:32 +00:00
CONTRIBUTING.md Create CONTRIBUTING.md 2014-03-06 10:57:24 +00:00
Dockerfile Use Python base image and run as normal user 2014-03-03 15:10:02 +00:00
LICENSE Add license 2013-12-09 12:01:44 +00:00
MANIFEST.in remove tests from distribution build 2014-02-23 03:37:31 +01:00
README.md Create CONTRIBUTING.md 2014-03-06 10:57:24 +00:00
requirements-dev.txt Add script to build Linux binary 2014-03-03 15:10:02 +00:00
requirements.txt Remove six from requirements 2014-03-03 12:08:38 +00:00
setup.py Update homepage in setup.py 2014-01-27 18:42:00 +00:00
tox.ini Added tox file 2014-01-06 17:58:49 +00:00

README.md

Fig

Build Status PyPI version

Fast, isolated development environments using Docker.

Define your app's environment with Docker so it can be reproduced anywhere:

FROM orchardup/python:2.7
ADD . /code
WORKDIR /code
RUN pip install -r requirements.txt
CMD python app.py

Define the services that make up your app so they can be run together in an isolated environment:

web:
  build: .
  links:
   - db
  ports:
   - "8000:8000"
   - "49100:22"
db:
  image: orchardup/postgresql

(No more installing Postgres on your laptop!)

Then type fig up, and Fig will start and run your entire app:

example fig run

There are commands to:

  • start, stop and rebuild services
  • view the status of running services
  • tail running services' log output
  • run a one-off command on a service

Fig is a project from Orchard, a Docker hosting service. Follow us on Twitter to keep up to date with Fig and other Docker news.

Installation and documentation

Full documentation is available on Fig's website.