-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
90 lines (82 loc) · 1.73 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
---
version: '3.0'
services:
db:
image: postgres:13.0
env_file:
- env_files/postgres-credentials.env
volumes:
- db:/var/lib/postgresql/data
networks:
- backend-internal
redis:
image: "redis:alpine"
networks:
- backend-internal
storage:
image: quay.io/minio/minio:RELEASE.2024-06-13T22-53-53Z
command: server --console-address ":9001" /data
ports:
- "9000:9000"
- "9001:9001"
env_file:
- env_files/minio.env
volumes:
- storage:/data
networks:
- backend-internal
backend:
build:
dockerfile: server/Dockerfile
context: .
image: "altklausur_ausleihe-backend:latest"
ports:
- "127.0.0.1:8081:8081"
env_file:
- env_files/postgres-credentials.env
- env_files/minio.env
- env_files/backend.env
networks:
- backend-internal
- backend
depends_on:
- db
- storage
- redis
- exam_marker
exam_marker:
build:
dockerfile: exam_marker/Dockerfile
context: .
image: "altklausur_ausleihe-exam_marker:latest"
env_file:
- env_files/postgres-credentials.env
- env_files/minio.env
- env_files/exam_marker.env
networks:
- backend-internal
- backend
depends_on:
- db
- storage
- redis
frontend:
build:
context: frontend
args:
SERVER_HTTP: http://localhost:8080/query
SERVER_WS: ws://localhost:8081/query
NGINX_CONFIG_NAME: nginx.conf
image: "altklausur_ausleihe-frontend:latest"
ports:
- "127.0.0.1:8080:80"
networks:
- backend
depends_on:
- backend
networks:
backend-internal: {}
backend: {}
volumes:
db: {}
storage: {}