-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (61 loc) · 1.55 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
version: "3.9"
services:
iam-api-db:
image: postgres:16.1
container_name: iam-postgres
environment:
- POSTGRES_DB=iam
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=iam-password
ports:
- "5432"
healthcheck:
test: "pg_isready -U postgres"
keycloak-db:
image: postgres:16.1
container_name: keycloak-postgres
environment:
- POSTGRES_DB=keycloak
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=keycloak-password
ports:
- "5432"
healthcheck:
test: "pg_isready -U postgres"
labels:
org.springframework.boot.ignore: true
keycloak:
image: quay.io/keycloak/keycloak:22.0.5
container_name: keycloak
environment:
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=admin
- KC_DB=postgres
- KC_DB_URL_HOST=keycloak-postgres
- KC_DB_URL_DATABASE=keycloak
- KC_DB_USERNAME=postgres
- KC_DB_PASSWORD=keycloak-password
- KC_HEALTH_ENABLED=true
ports:
- "8080:8080"
command: start-dev --import-realm
depends_on:
- keycloak-db
volumes:
- ./keycloak:/opt/keycloak/data/import
healthcheck:
test: "curl -f http://localhost:8080/health/ready || exit 1"
labels:
org.springframework.boot.ignore: true
pgadmin-main:
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: admin
depends_on:
- keycloak-db
- iam-api-db
ports:
- '5051:80'
labels:
org.springframework.boot.ignore: true