This repository has been archived by the owner on Aug 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
80 lines (75 loc) · 1.64 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
version: "3"
services:
jouko-mysql:
container_name: jouko-mysql-server
image: mysql:8.0.29
hostname: mysql.jouko.local
volumes:
- ./data/mysql:/var/lib/mysql
ports:
- "3306:3306"
environment:
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
MYSQL_DATABASE: "jouko_api"
MYSQL_USER: "jouko"
MYSQL_PASSWORD: "jouko"
networks:
- jouko-api-net
jouko-api:
container_name: jouko-api
hostname: api.jouko.local
build:
dockerfile: ./docker/Dockerfile.api
context: .
ports:
- 8080:8080
depends_on:
- jouko-mysql
networks:
- jouko-api-net
jouko-keycloak:
container_name: jouko-keycloak
image: quay.io/keycloak/keycloak:17.0.1-legacy
hostname: keycloak.jouko.local
ports:
- "9080:9080"
volumes:
- ./dev/:/opt/keycloak/
command: ["-Djboss.socket.binding.port-offset=1000"]
environment:
DB_VENDOR: h2
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: admin
networks:
- jouko-api-net
jouko-ui:
container_name: jouko-ui
hostname: ui.jouko.local
build:
dockerfile: ./docker/Dockerfile.user-ui
context: .
ports:
- 8000:8000
depends_on:
- jouko-mysql
- jouko-api
- jouko-keycloak
networks:
- jouko-api-net
jouko-admin:
container_name: jouko-admin-ui
hostname: admin.jouko.local
build:
dockerfile: ./docker/Dockerfile.admin-ui
context: .
ports:
- 8001:8001
depends_on:
- jouko-mysql
- jouko-api
- jouko-keycloak
networks:
- jouko-api-net
networks:
jouko-api-net:
driver: bridge