2019-04-25 09:39:52 +03:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
watch-static-files:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./dockerfiles/Dockerfile.node
|
2019-12-06 13:43:07 +03:00
|
|
|
env_file:
|
|
|
|
- .env
|
2019-04-25 09:39:52 +03:00
|
|
|
environment:
|
|
|
|
# Need to specify the SHELL env var for chokidar
|
|
|
|
- SHELL=/bin/sh
|
|
|
|
# Force polling because inotify doesn't work on Docker Windows
|
|
|
|
- CHOKIDAR_USEPOLLING=1
|
|
|
|
command: npm run watch
|
|
|
|
volumes:
|
2019-05-31 22:43:40 +03:00
|
|
|
- .:/app:delegated
|
|
|
|
- node_dependencies:/app/node_modules/:delegated
|
2019-04-25 09:39:52 +03:00
|
|
|
|
|
|
|
postgres:
|
|
|
|
image: postgres:9.6
|
|
|
|
ports:
|
|
|
|
- "5432"
|
|
|
|
volumes:
|
2019-05-31 22:43:40 +03:00
|
|
|
- postgres_data:/var/lib/postgresql/data/:delegated
|
2019-04-25 09:39:52 +03:00
|
|
|
|
|
|
|
backend:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./dockerfiles/Dockerfile.python
|
|
|
|
env_file:
|
2019-09-23 11:59:38 +03:00
|
|
|
- ".env"
|
2019-04-25 09:39:52 +03:00
|
|
|
command: pipenv run python network-api/manage.py runserver 0.0.0.0:8000
|
|
|
|
ports:
|
|
|
|
- "8000:8000"
|
|
|
|
volumes:
|
2019-05-31 22:43:40 +03:00
|
|
|
- .:/app:delegated
|
2019-04-25 09:39:52 +03:00
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
- watch-static-files
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
postgres_data:
|
|
|
|
node_dependencies:
|