-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
89 lines (83 loc) · 2.34 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: '3'
services:
postgres:
restart: always
build:
context: postgres
ports:
- "127.0.0.1:5432:5432"
container_name: docker_postgres
volumes:
- ./postgres/data:/var/lib/postgresql/data
example-service:
restart: always
build:
context: example-service
ports:
- "3000:3000"
container_name: docker_service
network_mode: "host"
# Keycloak instance that we'll be integrating with the various
# identity providers. Be careful when setting the password, as
# it gets picky about overly simplistic ones.
keycloak:
restart: always
build:
context: keycloak
args:
WILDFLY_USERNAME: root
WILDFLY_PASSWORD: Pa55word12345
KEYCLOAK_USERNAME: root
KEYCLOAK_PASSWORD: Pa55word12345
ports:
- "8081:8080"
- "9991:9990"
links:
- postgres:docker_postgres
- example-service:docker_service
container_name: docker_keycloak
# SAML IdP
saml:
restart: always
build:
context: simple-saml
ports:
- 8080:8080
- 8443:8080
environment:
SIMPLESAMLPHP_SP_ENTITY_ID: "http://${KEYCLOAK_URL}:8081/auth/realms/example-realm"
SIMPLESAMLPHP_SP_ASSERTION_CONSUMER_SERVICE: "http://${KEYCLOAK_URL}:8081/auth/realms/example-realm/broker/saml/endpoint"
SIMPLESAMLPHP_SP_SINGLE_LOGOUT_SERVICE: "http://${KEYCLOAK_URL}:8081/auth/realms/example-realm/broker/saml/endpoint"
container_name: docker_saml
# OpenLDAP server
openldap:
restart: always
command: --loglevel debug
image: osixia/openldap:1.1.5
container_name: docker_openldap
environment:
LDAP_LOG_LEVEL: "256"
LDAP_ORGANISATION: "Example Company"
LDAP_DOMAIN: "example.com"
LDAP_ADMIN_PASSWORD: "password"
tty: true
stdin_open: true
volumes:
- ./openldap/data:/var/lib/ldap
- ./openldap/config:/etc/ldap/slapd.d
- ./openldap/certs:/container/service/slapd/assets/certs/
ports:
- "389:389"
- "639:639"
# PHP-based web client for interacting with the OpenLDAP instance
phpldapadmin:
restart: always
image: osixia/phpldapadmin:latest
container_name: docker_phpldapadmin
environment:
PHPLDAPADMIN_LDAP_HOSTS: "docker_openldap"
PHPLDAPADMIN_HTTPS=false:
ports:
- "8082:80"
depends_on:
- openldap