Fast, isolated development environments using Docker.
-Define your app's environment with Docker so it can be reproduced anywhere.
+Define your app's environment with Docker so it can be reproduced anywhere:
FROM orchardup/python:2.7
ADD . /code
RUN pip install -r requirements.txt
WORKDIR /code
CMD python app.py
Define your app's services so they can be run alongside in an isolated environment. (No more installing Postgres on your laptop!)
+Define your app's services so they can be run alongside in an isolated environment:
web:
build: .
links:
@@ -34,6 +34,8 @@ CMD python app.py
db:
image: orchardup/postgresql
(No more installing Postgres on your laptop!)
+Then type fig up, and Fig will start and run your entire app:

Let's set up the three files that'll get us started. First, our app is going to be running inside a Docker container which contains all of its dependencies. We can define what goes inside that Docker container using a file called Dockerfile. It'll contain this to start with:
FROM binaryphile/ruby:2.0.0-p247
+RUN apt-get update -qq && apt-get install -y build-essential libpq-dev
RUN mkdir /myapp
WORKDIR /myapp
ADD Gemfile /myapp/Gemfile
diff --git a/yml.html b/yml.html
index 228b88f6..78dbd700 100644
--- a/yml.html
+++ b/yml.html
@@ -4,7 +4,7 @@
fig.yml reference
-
+