forked from pflaeging/keycloak-ws
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
55 lines (51 loc) · 1.32 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
version: '2'
services:
keycloak:
image: pflaeging/keycloak-pg:3.4.3-1
links:
- postgres
environment:
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=KeyCloak
- POSTGRES_PASSWORD=KeyCloak
- POSTGRES_USER=keycloak
- PROXY_ADDRESS_FORWARDING=true
# Workaround for container using legacy Docker links, resulting in
# "WFLYCTL0211: Cannot resolve expression 'jdbc:postgresql://${env.POSTGRES_PORT_5432_TCP_ADDR}...")n
- POSTGRES_PORT_5432_TCP_ADDR=postgres
depends_on:
- postgres
restart: always
postgres:
image: postgres:9.6-alpine
ports:
- 15432:5432
environment:
POSTGRES_PASSWORD: KeyCloak
POSTGRES_USER: keycloak
volumes:
- ./pg-data:/var/lib/postgresql/data
restart: always
ldap:
image: pflaeging/openldap:0.90
ports:
- 10389:389
- 10636:636
volumes:
- ./ldap-data:/var/lib/ldap
- ./sldapd-config:/etc/ldap/slapd.d
environment:
- LDAP_ORGANISATION="KeyCloak Workshop pflaeging.net"
- LDAP_DOMAIN=workshop.local
- LDAP_ADMIN_PASSWORD=AdMin
restart: always
haproxy:
image: haproxy:alpine
ports:
- 20443:443/tcp
# - 1936:1936/tcp
volumes:
- ./haproxy-etc:/usr/local/etc/haproxy
depends_on:
- keycloak
restart: always