-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
114 lines (104 loc) · 2.49 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
services:
mongo:
image: mongo:6
volumes:
- mongo:/data/mongo
patient:
# image: ghcr.io/icrc/hcw-i18n/hcw-patient:5.0.15-7547565
# image: iabsis/hcw-patient:5.0.15
build:
context: patient
args:
- HCW_PATIENT_VERSION=$HCW_PATIENT_VERSION
user: nginx
ports:
- "8080:8080"
environment:
- BACKEND_URL=http://backend:1337
depends_on:
- mongo
- backend
doctor:
build:
context: doctor
args:
# If you update this, please update .github/workflows/publish-hcw-docker-images.yml
- HCW_DOCTOR_VERSION=$HCW_DOCTOR_VERSION
# target: export-json
user: nginx
ports:
- "8081:8081"
environment:
- BACKEND_URL=http://backend:1337
depends_on:
- mongo
- backend
admin:
build:
context: admin
args:
# If you update this, please update .github/workflows/publish-hcw-docker-images.yml
- HCW_ADMIN_VERSION=$HCW_ADMIN_VERSION
user: nginx
ports:
- "8089:8082"
environment:
- BACKEND_URL=http://backend:1337
depends_on:
- mongo
- backend
backend:
build:
context: backend
args:
#If you update this, please update .github/workflows/publish-hcw-docker-images.yml
- HCW_BACKEND_VERSION=$HCW_BACKEND_VERSION
user: node
ports:
- "1337:1337"
env_file:
- ./secrets.env
environment:
# Configure here database, by default
# a local mongo is used.
- DB_URI=mongodb://mongo:27017/hcw-athome
- REDIS_HOST=redis
# don't use on PROD !
- NODE_ENV=development
- LOGIN_METHOD=password
- DOCTOR_URL=http://localhost:8081
- EXPERT_FQDN=http://localhost:8080
- PATIENT_FQDN=http://localhost:8080
- CLAM_HOST=clamav
- MEDIASOUP_URL=http://mediasoup
- MEDIASOUP_USER=mediasoup_user
- BRANDING=Teleconnect
- ACCESSIBILITY_MODE=false
- ATTACHMENTS_DIR=/data/attachments
depends_on:
- mongo
- redis
- clamav
volumes:
- backend-attachments:/data/attachments
restart: always
redis:
image: redis
clamav:
image: clamav/clamav:1.2
ports:
- "3310:3310"
mediasoup:
image: iabsis/mediasoup-api:latest
env_file:
- ./secrets.env
environment:
- API_USER=mediasoup_user
- REDIS_HOST=redis
volumes:
backend-attachments:
name: hcw-backend-attachments
driver: local
mongo:
name: hcw-mongo
driver: local