-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
163 lines (155 loc) · 4.6 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
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
version: "3"
services:
keycloak:
image: quay.io/keycloak/keycloak:12.0.2
ports:
- 8180:8080
environment:
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: admin
KEYCLOAK_IMPORT: /tmp/konveyor-realm.json
DB_VENDOR: h2
volumes:
- ./konveyor-realm.json:/tmp/konveyor-realm.json:z
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/auth"]
interval: 10s
timeout: 5s
retries: 5
controls-db:
image: postgres:13.1
ports:
- 5433:5432
environment:
POSTGRES_DB: controls_db
POSTGRES_USER: user
POSTGRES_PASSWORD: password
healthcheck:
test: ["CMD-SHELL", "pg_isready -U user -d controls_db"]
interval: 10s
timeout: 5s
retries: 5
controls:
image: quay.io/konveyor/tackle-controls:latest-native
ports:
- 8081:8080
environment:
QUARKUS_HTTP_PORT: 8080
QUARKUS_DATASOURCE_USERNAME: user
QUARKUS_DATASOURCE_PASSWORD: password
QUARKUS_DATASOURCE_JDBC_URL: jdbc:postgresql://controls-db:5432/controls_db
QUARKUS_OIDC_AUTH_SERVER_URL: http://keycloak:8080/auth/realms/konveyor
QUARKUS_OIDC_CLIENT_ID: controls-api
QUARKUS_OIDC_CREDENTIALS_SECRET: secret
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/controls/q/health"]
interval: 10s
timeout: 5s
retries: 5
depends_on:
keycloak:
condition: service_healthy
controls-db:
condition: service_healthy
application-inventory-db:
image: postgres:13.1
ports:
- 5434:5432
environment:
POSTGRES_DB: application_inventory_db
POSTGRES_USER: user
POSTGRES_PASSWORD: password
healthcheck:
test: ["CMD-SHELL", "pg_isready -U user -d application_inventory_db"]
interval: 10s
timeout: 5s
retries: 5
application-inventory:
image: quay.io/konveyor/tackle-application-inventory:latest-native
ports:
- 8082:8080
environment:
QUARKUS_HTTP_PORT: 8080
QUARKUS_DATASOURCE_USERNAME: user
QUARKUS_DATASOURCE_PASSWORD: password
QUARKUS_DATASOURCE_JDBC_URL: jdbc:postgresql://application-inventory-db:5432/application_inventory_db
QUARKUS_OIDC_AUTH_SERVER_URL: http://keycloak:8080/auth/realms/konveyor
QUARKUS_OIDC_CLIENT_ID: application-inventory-api
QUARKUS_OIDC_CREDENTIALS_SECRET: secret
IO_TACKLE_APPLICATIONINVENTORY_SERVICES_CONTROLS_SERVICE: controls:8080
healthcheck:
test:
[
"CMD",
"curl",
"-f",
"http://localhost:8080/application-inventory/q/health",
]
interval: 10s
timeout: 5s
retries: 5
depends_on:
keycloak:
condition: service_healthy
application-inventory-db:
condition: service_healthy
pathfinder-db:
image: postgres:13.1
ports:
- 5435:5432
environment:
POSTGRES_DB: pathfinder_db
POSTGRES_USER: user
POSTGRES_PASSWORD: password
healthcheck:
test: ["CMD-SHELL", "pg_isready -U user -d pathfinder_db"]
interval: 10s
timeout: 5s
retries: 5
pathfinder:
image: quay.io/konveyor/tackle-pathfinder:latest-native
ports:
- 8083:8080
environment:
QUARKUS_HTTP_PORT: 8080
QUARKUS_DATASOURCE_USERNAME: user
QUARKUS_DATASOURCE_PASSWORD: password
QUARKUS_DATASOURCE_JDBC_URL: jdbc:postgresql://pathfinder-db:5432/pathfinder_db
QUARKUS_OIDC_AUTH_SERVER_URL: http://keycloak:8080/auth/realms/konveyor
QUARKUS_OIDC_CLIENT_ID: pathfinder-api
QUARKUS_OIDC_CREDENTIALS_SECRET: secret
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/pathfinder/q/health"]
interval: 10s
timeout: 5s
retries: 5
depends_on:
keycloak:
condition: service_healthy
pathfinder-db:
condition: service_healthy
ui:
image: quay.io/konveyor/tackle-ui:main
ports:
- 3001:8080
environment:
SSO_REALM: konveyor
SSO_CLIENT_ID: tackle-ui
SSO_SERVER_URL: http://keycloak:8080/auth
CONTROLS_API_URL: http://controls:8080/controls
APPLICATION_INVENTORY_API_URL: http://application-inventory:8080/application-inventory
PATHFINDER_API_URL: http://pathfinder:8080/pathfinder
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080"]
interval: 10s
timeout: 5s
retries: 5
depends_on:
keycloak:
condition: service_healthy
controls:
condition: service_healthy
application-inventory:
condition: service_healthy
pathfinder:
condition: service_healthy