-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
68 lines (62 loc) · 1.41 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
version: '3.9'
services:
krakend:
image: devopsfaith/krakend:2.2.1
volumes:
- ./keycloak-krakend.json:/etc/krakend/krakend.json
ports:
- 10000:8080
networks:
- null_signal
postgres:
image: postgres:13.2
restart: unless-stopped
volumes:
- ./initdb:/docker-entrypoint-initdb.d
- postgres_data:/var/lib/postgresql/data
env_file:
- ./database.dev.env
networks:
- backend
keycloak:
container_name: local_keycloak
image: quay.io/keycloak/keycloak:latest
environment:
KC_FEATURES:
authorization
token-exchange
docker
impersonation
scripts
upload-scripts
web-authn
client-policies
dynamic-scopes
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: password
KC_DB: postgres
KC_DB_URL: jdbc:postgresql://postgres/keycloak
KC_DB_USERNAME: keycloak
KC_DB_PASSWORD: kc
entrypoint: /opt/keycloak/bin/kc.sh --config-file=/opt/keycloak/conf/keycloak.conf start-dev
volumes:
- keycloak_data:/opt/keycloak/conf
ports:
- "8080:8080"
- "8443:8443"
restart: on-failure
networks:
- backend
- null_signal
depends_on:
postgres:
condition: service_started
networks:
null_signal:
external: true
backend:
name: backend
driver: bridge
volumes:
keycloak_data:
postgres_data: