forked from MozillaFoundation/foundation.mozilla.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (50 loc) · 1.28 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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:delegated
- node_modules:/app/node_modules/:delegated
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/:delegated
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:delegated
- dockerpythonvenv:/app/dockerpythonvenv/:delegated
depends_on:
- postgres
volumes:
postgres_data:
node_modules:
dockerpythonvenv: