-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
122 lines (121 loc) · 2.93 KB
/
docker-compose.yaml
File metadata and controls
122 lines (121 loc) · 2.93 KB
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
version: "3.9"
services:
frontend:
tty: true
restart: "always"
user: vscode
build:
context: ./flightlog-frontend
target: dev
volumes:
- ./flightlog-frontend:/src:z
- /src/node_modules:z
ports:
- "8080:8080"
api-gateway:
tty: true
restart: "always"
ports:
- "61225:61225"
build:
context: ./api-gateway
target: build_base
environment:
- DATABASE_USERNAME=root
- DATABASE_PASSWORD=my-secret-pw
- DATABASE_HOSTNAME=database
- DATABASE_PORT=3306
- DATABASE_DATABASE=flightloguser
- AUTHENTICATION_PROVIDER=http://keycloak:8080/realms/flightlog
- SERVICE_USERSERVICE_URL=http://userservice
- SERVICE_USERSERVICE_PORT=61226
- SERVICE_USERSERVICE_REST_PORT=61228
- SERVICE_FLIGHTSERVICE_URL=http://flightservice
- SERVICE_FLIGHTSERVICE_PORT=61227
depends_on:
- "userservice"
- "database"
- "keycloak"
links:
- "database"
- "userservice"
- "flightservice"
volumes:
- ./api-gateway/src:/src:z
userservice:
tty: true
restart: "always"
ports:
- "61226:61226"
links:
- "database"
build:
target: build_base
context: ./userservice
environment:
- DATABASE_USERNAME=root
- DATABASE_PASSWORD=my-secret-pw
- DATABASE_HOSTNAME=database
- DATABASE_PORT=3306
- DATABASE_DATABASE=flightloguser
depends_on:
- "database"
volumes:
- ./userservice/src:/src:z
flightservice:
tty: true
restart: "always"
ports:
- "61227:61227"
links:
- "database"
- "userservice"
build:
target: build_base
context: ./flightlog-flights
environment:
- DATABASE_USERNAME=root
- DATABASE_PASSWORD=my-secret-pw
- DATABASE_HOSTNAME=database
- DATABASE_PORT=3306
- DATABASE_DATABASE=flightlogflights
- SERVICE_USERSERVICE_URL=userservice
- SERVICE_USERSERVICE_PORT=61226
- SERVICE_MODE=development
depends_on:
- "database"
- "userservice"
volumes:
- ./flightlog-flights/src:/src:z
database:
build:
context: ./database
restart: "always"
ports:
- "3307:3306"
environment:
MYSQL_ROOT_PASSWORD: my-secret-pw
MYSQL_DATABASE: flightloguser
MYSQL_USER: flightlog
MYSQL_PASSWORD: my-secret-pw
healthcheck:
test: ["CMD", "mysqladmin", "ping", "--silent"]
keycloak_database:
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: keycloak
MYSQL_USER: keycloak
MYSQL_PASSWORD: password
ports:
- "3308:3306"
healthcheck:
test: ["CMD", "mysqladmin", "ping", "--silent"]
keycloak:
build:
context: ./keycloak
ports:
- "8082:8080"
volumes:
- ./keycloak/test.json:/tmp/test.json:z
- ./keycloak/compose-start.sh:/opt/keycloak/bin/compose-start.sh:z