forked from jgrodziski/keycloak-clojure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (52 loc) · 1.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
version: '3.8'
volumes:
kcpgdata:
driver: local
services:
postgres:
image: postgres:9.6
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 8
restart: always
ports:
- 5432:5432
volumes:
- kcpgdata:/var/lib/postgresql/data
- ./docker/postgres/init:/docker-entrypoint-initdb.d
environment:
POSTGRES_PASSWORD: password
POSTGRES_USER: postgres
vault:
image: vault:1.4.7
cap_add:
- IPC_LOCK
ports:
- 8200:8200
environment:
VAULT_DEV_ROOT_TOKEN_ID: myroot
keycloak:
image: jgrodziski/keycloak:16.1.0
platform: linux/arm64
depends_on:
- postgres
healthcheck:
test: ["CMD", "curl", "--output", "/dev/null", "--silent", "--head", "--fail", "http://127.0.0.1:8080/auth"]
interval: 20s
timeout: 5s
retries: 6
start_period: 40s
ports:
- 9990:9990
- 8090:8080
- 8443:8443
environment:
DB_VENDOR: POSTGRES
DB_ADDR: postgres
DB_DATABASE: keycloak
DB_USER: keycloak
DB_PASSWORD: password
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: secretadmin