-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (59 loc) · 1.35 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
version: '3.3'
services:
web:
build:
context: ./WebApp/tourguide/
dockerfile: DockerfileLocalDev
depends_on:
- api
- keycloak
ports:
- '80:80'
api:
build:
context: ./Backend/API/
depends_on:
- api-db
- keycloak
ports:
- '5000:80'
environment:
ConnectionStrings__MariaDbConnectionString: 'server=api-db; user=api; password=Gruppe02; database=api'
JwtBearer__Authority: 'http://keycloak:8080/auth/realms/tourguide'
JwtBearer__RequireHttpsMetadata: 'false'
JwtTokenValidation__ValidateIssuer: 'false'
api-db:
image: mariadb
ports:
- '3306:3306'
volumes:
- api-volume:/var/lib/mysql
environment:
MARIADB_ROOT_PASSWORD: Gruppe02
MARIADB_PASSWORD: Gruppe02
MARIADB_USER: api
MARIADB_DATABASE: api
keycloak:
build:
context: ./Keycloak
ports:
- '8080:8080'
depends_on:
- keycloak-db
environment:
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: Gruppe02
DB_VENDOR: mariadb
DB_ADDR: keycloak-db
keycloak-db:
image: mariadb
volumes:
- keycloak-volume:/var/lib/mysql
environment:
MARIADB_ROOT_PASSWORD: password
MARIADB_PASSWORD: password
MARIADB_USER: keycloak
MARIADB_DATABASE: keycloak
volumes:
api-volume:
keycloak-volume: