-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
108 lines (96 loc) · 2.36 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
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: >
keycloak/default.sql
overworld/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
# 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
- KEYCLOAK_ISSUER=http://localhost/keycloak/realms/Gamify-IT
- KEYCLOAK_URL=http://keycloak/keycloak/realms/Gamify-IT
# frontends
landing-page:
container_name: landing-page
build: .
restart: always
expose:
- "80"
overworld:
container_name: overworld
image: ghcr.io/gamify-it/overworld:main
restart: always
pull_policy: always
expose:
- "80"
lecturer-interface:
container_name: lecturer-interface
image: ghcr.io/gamify-it/lecturer-interface:main
restart: always
pull_policy: always
expose:
- "80"
# reverse-proxy
reverse-proxy:
container_name: reverse-proxy
image: nginx
restart: always
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./.nginx/compose/nginx.conf:/etc/nginx/conf.d/default.conf:ro
ports:
- "80:80"