-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
79 lines (73 loc) · 2 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: '3.2'
networks:
enrolment:
driver: bridge
ipam:
config:
- subnet: 172.21.0.0/16
services:
web:
build: ./enrolment-ui/
depends_on:
- api
env_file: .env
networks:
- enrolment
restart: always
volumes:
- web-data:/data/web
api:
build: ./enrolment-service/
depends_on:
- postgres
entrypoint: /entrypoint.sh
env_file: .env
expose:
- "8000"
networks:
- enrolment
restart: always
volumes:
- api-data:/data/api
- ./persistent_data/logs/django:/var/log/gunicorn
- ./enrolment-service/enrol/core:/data/api/enrol/core
nginx:
build: ./nginx/
depends_on:
- web
- api
networks:
- enrolment
ports:
- "8443:8080"
- "8000:8000"
restart: always
volumes:
- type: volume
source: web-data
target: /data/web
read_only: true
- type: volume
source: api-data
target: /data/api
read_only: true
- ./nginx/sites-enabled:/etc/nginx/sites-enabled
- ./persistent_data/logs/:/var/log/
- ./persistent_data/logs/nginx:/var/log/nginx
- /etc/ssl/certs/cancercollaboratory.org.crt:/etc/ssl/domain.cert
- /etc/ssl/private/cancercollaboratory.org.key:/etc/ssl/domain.key
postgres:
env_file: .env
expose:
- "5432"
image: postgres:10.1
networks:
- enrolment
restart: always
volumes:
- ./postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- ./persistent_data/logs/postgres:/var/lib/postgresql/data/log
- ./persistent_data/postgresql:/var/lib/postgresql/data
volumes:
web-data:
api-data: