Added docker-compose file for development.

This commit is contained in:
Antoine Nguyen
2018-08-19 17:07:27 +02:00
parent 20ee12f686
commit 9a0a5a96af
5 changed files with 44 additions and 3 deletions
+18
View File
@@ -0,0 +1,18 @@
version: '3'
services:
web:
build:
context: .
dockerfile: Dockerfile.dev
expose:
- "8000"
ports:
- "8000:8000"
environment:
PYTHONPATH: ".."
DB: "SQLITE"
DEBUG: "True"
command: sh -c "cd test_project && python3 manage.py migrate && python3 manage.py load_initial_data && python3 manage.py runserver 0:8000"
volumes:
- .:/code