Skip to content

Enhancement/Add Docker-Compose file for development#204

Merged
Hironsan merged 2 commits intodoccano:masterfrom
CatalystCode:enhancement/docker-compose
May 20, 2019
Merged

Enhancement/Add Docker-Compose file for development#204
Hironsan merged 2 commits intodoccano:masterfrom
CatalystCode:enhancement/docker-compose

Conversation

@c-w
Copy link
Copy Markdown
Member

@c-w c-w commented May 16, 2019

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:8 and python: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.

@c-w c-w force-pushed the enhancement/docker-compose branch from d7c9305 to 3b30f7e Compare May 16, 2019 18:37
@c-w c-w force-pushed the enhancement/docker-compose branch 2 times, most recently from f9745d4 to 13f22b3 Compare May 16, 2019 18:41
@c-w c-w force-pushed the enhancement/docker-compose branch from 13f22b3 to 996d67a Compare May 16, 2019 18:43
@Hironsan Hironsan merged commit 2cc11c0 into doccano:master May 20, 2019
@c-w c-w deleted the enhancement/docker-compose branch June 11, 2019 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants