-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yaml
139 lines (124 loc) · 3.3 KB
/
docker-compose-dev.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
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
crosswordpuzzle/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
crosswordpuzzle-db:
container_name: crosswordpuzzle-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
- CROSSWORDPUZZLE_URL=http://crosswordpuzzle-backend/api/v1
- KEYCLOAK_ISSUER=http://localhost/keycloak/realms/Gamify-IT
- KEYCLOAK_URL=http://keycloak/keycloak/realms/Gamify-IT
crosswordpuzzle-backend:
container_name: crosswordpuzzle-backend
image: ghcr.io/gamify-it/crosswordpuzzle-backend:main
restart: always
pull_policy: always
expose:
- "80"
depends_on:
- crosswordpuzzle-db
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_URL=postgresql://crosswordpuzzle-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"
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-dev.conf:/etc/nginx/conf.d/default.conf:ro
ports:
- "80:80"