Created
November 21, 2014 17:42
-
-
Save jcderr/98f91d4511fc611faaec to your computer and use it in GitHub Desktop.
fig.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 thenfig build
and then reset the stack.