Enhancement/Add Docker-Compose file for development#204
Merged
Hironsan merged 2 commits intodoccano:masterfrom May 20, 2019
Merged
Enhancement/Add Docker-Compose file for development#204Hironsan merged 2 commits intodoccano:masterfrom
Hironsan merged 2 commits intodoccano:masterfrom
Conversation
d7c9305 to
3b30f7e
Compare
f9745d4 to
13f22b3
Compare
13f22b3 to
996d67a
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds a compose file to set up the development environment with just one command:
docker-compose up.The compose file runs and links the Django server, Webpack devserver and a Postgres database. An admin user is also created if it doesn't exist yet.
The compose file uses standard base images (
node:8andpython:3.6) and injects the code via bind-mounts. This approach provides an efficient development experience by avoiding the Docker build step and also enabling automatic reloading of the Django and Webpack servers when the code is changed.To prevent potential issues resulting from differences in the operating system in the containers and the host operating system, the virtualenv and node_modules are hidden from the host via volumes.