Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (41 sloc) 1.07 KB
version: '3'
services:
watch-static-files:
build:
context: .
dockerfile: ./dockerfiles/Dockerfile.node
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:
- .:/app:delegated
- node_dependencies:/app/node_modules/:delegated
postgres:
image: postgres:9.6
ports:
- "5432"
volumes:
- postgres_data:/var/lib/postgresql/data/:delegated
backend:
build:
context: .
dockerfile: ./dockerfiles/Dockerfile.python
env_file:
- ".docker.env"
environment:
# Prevents pipenv from loading env files (python dotenv and docker-compose compatibility issue).
- PIPENV_DONT_LOAD_ENV=1
command: pipenv run python network-api/manage.py runserver 0.0.0.0:8000
ports:
- "8000:8000"
volumes:
- .:/app:delegated
depends_on:
- postgres
- watch-static-files
volumes:
postgres_data:
node_dependencies:
You can’t perform that action at this time.