-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
142 lines (127 loc) · 3.28 KB
/
docker-compose.yaml
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
135
136
137
138
139
140
141
142
version: "3.7"
services:
#databases
setup:
container_name: setup
image: ghcr.io/gamify-it/test-data:latest
pull_policy: always
restart: on-failure
environment:
POSTGRES_SETUP: >
overworld/default.sql
finitequiz/default.sql
keycloak/default.sql
keycloak-db:
container_name: keycloak-db
image: postgres:14-alpine
restart: always
expose:
- "5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
overworld-db:
container_name: overworld-db
image: postgres:14-alpine
restart: always
expose:
- "5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
finitequiz-db:
container_name: finitequiz-db
image: postgres:14-alpine
restart: always
expose:
- "5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
#backends
keycloak:
container_name: keycloak
expose:
- "80"
image: quay.io/keycloak/keycloak:19.0
command:
- "start-dev"
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
KC_DB: postgres
KC_DB_URL: jdbc:postgresql://keycloak-db:5432/postgres
KC_DB_USERNAME: postgres
KC_DB_PASSWORD: postgres
KC_HOSTNAME_STRICT: false
KC_PROXY: edge
KC_HTTP_RELATIVE_PATH: /keycloak
KC_HTTP_PORT: 80
overworld-backend:
container_name: overworld-backend
image: ghcr.io/gamify-it/overworld-backend:main
restart: always
pull_policy: always
expose:
- "80"
depends_on:
- overworld-db
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_URL=postgresql://overworld-db:5432/postgres
- FINITEQUIZ_URL=http://finitequiz-backend/api/v1
- KEYCLOAK_ISSUER=http://localhost/keycloak/realms/Gamify-IT
- KEYCLOAK_URL=http://keycloak/keycloak/realms/Gamify-IT
finitequiz-backend:
container_name: finitequiz-backend
image: ghcr.io/gamify-it/finitequiz-backend:main
restart: always
pull_policy: always
expose:
- "80"
depends_on:
- finitequiz-db
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_URL=postgresql://finitequiz-db:5432/postgres
- OVERWORLD_URL=http://overworld-backend/api/v1
- KEYCLOAK_ISSUER=http://localhost/keycloak/realms/Gamify-IT
- KEYCLOAK_URL=http://keycloak/keycloak/realms/Gamify-IT
#frontends
landing-page:
container_name: landing-page
image: ghcr.io/gamify-it/landing-page:main
restart: always
pull_policy: always
expose:
- "80"
overworld:
container_name: overworld
image: ghcr.io/gamify-it/overworld:main
restart: always
pull_policy: always
expose:
- "80"
finitequiz:
container_name: finitequiz
build: .
restart: always
expose:
- "80"
lecturer-interface:
container_name: lecturer-interface
image: ghcr.io/gamify-it/lecturer-interface:main
restart: always
expose:
- "80"
# reverse-proxy
reverse-proxy:
container_name: reverse-proxy
image: nginx
restart: always
volumes:
- ./.nginx/compose/nginx.conf:/etc/nginx/conf.d/default.conf:ro
ports:
- "80:80"