57 строки
1.3 KiB
YAML
57 строки
1.3 KiB
YAML
version: '3'
|
|
|
|
services:
|
|
|
|
watch-static-files:
|
|
build:
|
|
context: .
|
|
dockerfile: ./dockerfiles/Dockerfile.node
|
|
env_file:
|
|
- .env
|
|
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
|
|
- CHOKIDAR_INTERVAL=2000
|
|
command: npm run watch
|
|
volumes:
|
|
- .:/app
|
|
- node_modules:/app/node_modules/
|
|
- dockerpythonvenv:/app/dockerpythonvenv/
|
|
depends_on:
|
|
- backend
|
|
|
|
postgres:
|
|
image: postgres:13.2
|
|
ports:
|
|
- "5678:5432"
|
|
environment:
|
|
- POSTGRES_DB=wagtail
|
|
- POSTGRES_USER=foundation
|
|
# We're only using this setting for local dev!
|
|
- POSTGRES_HOST_AUTH_METHOD=trust
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data/
|
|
|
|
backend:
|
|
build:
|
|
context: .
|
|
dockerfile: ./dockerfiles/Dockerfile.python
|
|
env_file:
|
|
- ".env"
|
|
command: dockerpythonvenv/bin/python network-api/manage.py runserver 0.0.0.0:8000
|
|
ports:
|
|
- "8000:8000"
|
|
- "8001:8001" # ptvsd port for debugging
|
|
volumes:
|
|
- .:/app
|
|
- dockerpythonvenv:/app/dockerpythonvenv/
|
|
depends_on:
|
|
- postgres
|
|
|
|
volumes:
|
|
postgres_data:
|
|
node_modules:
|
|
dockerpythonvenv:
|