-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
91 lines (84 loc) · 2.19 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
services:
keycloak:
image: quay.io/keycloak/keycloak:26.0.4
ports:
- 9080:8080
networks:
- defender
volumes:
- ./keycloak/defender-realm.json:/opt/keycloak/data/import/defender-realm.json
command: ["start-dev", "--import-realm"]
environment:
TZ: America/Chicago
KC_BOOTSTRAP_ADMIN_USERNAME: admin
KC_BOOTSTRAP_ADMIN_PASSWORD: admin
KC_DB: postgres
KC_DB_URL: jdbc:postgresql://authdb:5432/keycloak
KC_DB_USERNAME: keycloak
KC_DB_PASSWORD: password
authdb:
image: postgres:16
volumes:
- authdb-data:/var/lib/postgresql/data
restart: always
networks:
- defender
environment:
TZ: America/Chicago
POSTGRES_PASSWORD: password
POSTGRES_USER: keycloak
POSTGRES_DB: keycloak
appdb:
image: postgres:16
volumes:
- appdb-data:/var/lib/postgresql/data
restart: always
networks:
- defender
environment:
TZ: America/Chicago
POSTGRES_PASSWORD: defender
POSTGRES_USER: defender
POSTGRES_DB: defender
ports:
- 5432:5432
defender-client:
image: quantasnet/defender-client:0.0.1-SNAPSHOT
build:
context: defender-client/.
networks:
- defender
links:
- defender-api
environment:
TZ: America/Chicago
ports:
- 8000:8000
defender-api:
image: quantasnet/defender-api:0.0.1-SNAPSHOT
build:
context: defender-api/.
restart: always
networks:
- defender
healthcheck:
test: ["CMD", "/bin/sh", "-c", "wget --quiet --tries=1 --spider http://localhost:8080/actuator/health || exit 1"]
interval: 1m30s
timeout: 10s
retries: 3
ports:
- 8080:8080
environment:
PORT: 8080
TZ: America/Chicago
SPRING_DATASOURCE_URL: jdbc:postgresql://appdb:5432/defender?sslmode=disable
SPRING_DATASOURCE_USERNAME: defender
SPRING_DATASOURCE_PASSWORD: defender
AUTH_STS_SERVER: http://localhost:9080/realms/defender
# Setting internal stsServer for running in Docker locally
AUTH_STS_SERVER_INTERNAL: http://keycloak:8080/realms/defender
networks:
defender:
volumes:
authdb-data:
appdb-data: