Skip to content

Instantly share code, notes, and snippets.

@jcderr
Created November 21, 2014 17:42
Show Gist options
  • Save jcderr/98f91d4511fc611faaec to your computer and use it in GitHub Desktop.
Save jcderr/98f91d4511fc611faaec to your computer and use it in GitHub Desktop.
fig.yml
devserver:
image: << production docker image name >>
volumes:
- .:/usr/src/app
links:
- db
- redis
environment:
DEBUG: True
DATABASE_URL: postgres://username:password@db:5432/dbname
PYTHONDONTWRITEBYTECODE: 1
ports:
- "8000:80"
@jcderr
Copy link
Author

jcderr commented Nov 21, 2014

The image we specify already has all of the dependencies installed. This will break if your code introduces a new dependency. In our case, we're a Django app, so you'd need to update the image with the results of the new requirements.txt file; the dev might docker build -t << image name >> . and then fig build and then reset the stack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment