Created
March 1, 2016 18:39
-
-
Save Nagasaki45/9aed10b837612f385bc7 to your computer and use it in GitHub Desktop.
Building and running django app with docker-compose
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
| # Build the three containers | |
| # Images are automatically fetched, if necessary, from docker hub | |
| docker-compose build | |
| # Start a new web container to run migrations | |
| # Use --rm to remove the container when the command completes | |
| docker-compose run --rm web python manage.py migrate | |
| # Run everything in the background with -d | |
| docker-compose up -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment