forked from jgrodziski/keycloak-clojure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (57 loc) · 1.39 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
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: quay.io/keycloak/keycloak:20.0.3
entrypoint: ["/opt/keycloak/bin/kc.sh", "start-dev"]
depends_on:
- postgres
healthcheck:
test: ["CMD", "curl", "--output", "/dev/null", "--silent", "--head", "--fail", "http://127.0.0.1:8080/"]
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
KC_DB: postgres
KC_DB_URL: jdbc:postgresql://postgres:5432/keycloak
KC_DB_USERNAME: postgres
KC_DB_PASSWORD: password
KC_HOSTNAME: localhost
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: secretadmin