-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
134 lines (133 loc) · 2.95 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
version: "3.9"
services:
db:
platform: linux/amd64
image: postgres:14
environment:
- POSTGRES_DB=itvr
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- 5432:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
minio:
platform: linux/amd64
image: minio/minio
hostname: "minio"
volumes:
- ./minio:/minio_files
env_file:
- minio.env
command: 'minio server /minio_files --console-address ":9001"'
ports:
- 9000:9000
- 9001:9001
createbuckets:
platform: linux/amd64
image: minio/mc
depends_on:
- minio
env_file:
- minio.env
entrypoint: >
/bin/sh -c "
/usr/bin/mc config host add myminio http://minio:9000 minioadmin minioadmin;
/usr/bin/mc mb --quiet myminio/itvr;
/usr/bin/mc policy set none myminio/itvr;
"
api:
build: ./django
command: >
sh -c "python manage.py createcachetable &&
python manage.py migrate &&
python manage.py runserver 0.0.0.0:8000"
env_file:
- keycloak.env
- minio.env
environment:
- DB_ENGINE=django.db.backends.postgresql
- DB_HOST=db
- DB_NAME=itvr
- DB_PASSWORD=postgres
- DB_PORT=5432
- DB_USER=postgres
- DJANGO_DEBUG=True
- EMAIL_SERVICE_CLIENT_ID
- EMAIL_SERVICE_CLIENT_SECRET
- CHES_AUTH_URL
- CHES_EMAIL_URL
- SEND_EMAIL
- BCC_EMAIL
- BYPASS_AUTHENTICATION
- NCDA_CLIENT_SECRET
- VIRUS_SCANNING_ENABLED=True
- CLAMD_HOST=clamav
- CLAMD_PORT=3310
- USE_CRYPTO_SERVICE
- CRYPTO_SERVICE_URL
- CRA_CERTIFICATE
- CRA_CERTIFICATE_CRL_DN
- EPF_FILENAME
- EPF_PASSWORD
volumes:
- ./django:/api
ports:
- "8000:8000"
depends_on:
db:
condition: service_healthy
workers:
build: ./django
command: >
sh -c "python manage.py qcluster"
env_file:
- keycloak.env
- minio.env
environment:
- DB_ENGINE=django.db.backends.postgresql
- DB_HOST=db
- DB_NAME=itvr
- DB_PASSWORD=postgres
- DB_PORT=5432
- DB_USER=postgres
- DJANGO_DEBUG=True
- EMAIL_SERVICE_CLIENT_ID
- EMAIL_SERVICE_CLIENT_SECRET
- CHES_AUTH_URL
- CHES_EMAIL_URL
- SEND_EMAIL
- BCC_EMAIL
- NCDA_CLIENT_SECRET
- RUN_JOBS=True
volumes:
- ./django:/api
depends_on:
- db
- api
web:
build: ./frontend
command: npm run start
volumes:
- ./frontend:/web
- /web/node_modules
ports:
- 3000:3000
spring:
build: ./spring
ports:
- "8080:8080"
environment:
- SERVER_PORT=8080
- DIRECTORY_IP=localhost
- DIRECTORY_PORT=389
env_file:
- minio.env
volumes:
- ./spring:/app
clamav:
platform: linux/amd64
image: clamav/clamav