-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
74 lines (69 loc) · 2.09 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
version: '3.4'
networks:
mynetwork:
name: mynetwork
attachable: true
services:
# IdP for simulating OIDC/SSO w/ Keycloak 14
keycloak:
container_name: keycloak
image: quay.io/keycloak/keycloak:14.0.0 # 24.0.0 for testing new version
ports:
- 8443:8443
volumes:
- ./myconfig/certs/oidc_simulator.crt:/etc/x509/https/tls.crt
- ./myconfig/certs/oidc_simulator.key:/etc/x509/https/tls.key
environment:
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: password
KEYCLOAK_HOST: host.docker.internal
KEYCLOAK_HTTPS: true
HTTPS_PORT: 8443
KC_HOSTNAME: host.docker.internal
KC_HTTPS_CERTIFICATE_FILE: /etc/x509/https/tls.crt
KC_HTTPS_CERTIFICATE_KEY_FILE: /etc/x509/https/tls.key
networks:
- mynetwork
# IdP for simulating OIDC/SSO from Keycloak 14 IdP Broker to Keycloak 24
keycloak24:
container_name: keycloak24
image: quay.io/keycloak/keycloak:24.0.0
ports:
- 10024:8443
volumes:
- ./myconfig/certs/oidc_simulator.crt:/etc/x509/https/tls.crt
- ./myconfig/certs/oidc_simulator.key:/etc/x509/https/tls.key
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: password
KC_HOSTNAME: host.docker.internal
KC_HTTPS_CERTIFICATE_FILE: /etc/x509/https/tls.crt
KC_HTTPS_CERTIFICATE_KEY_FILE: /etc/x509/https/tls.key
command:
start-dev
depends_on:
- keycloak
networks:
- mynetwork
f5-oidc:
container_name: f5-oidc
build:
context: ./
dockerfile: ./docker/nginxplus-25-ubuntu18.04/Dockerfile
image: f5-oidc
ports:
- 443:443
volumes:
- ./common/backend:/etc/nginx/backend
- ./common/oidc:/etc/nginx/oidc
- ./common/template:/etc/nginx/template
- ./common/frontend:/usr/share/nginx/html/
- ./tools/python:/etc/nginx/init
# Choose and update environment variable file per each IdP
# env_file: ./myconfig/settings-okta.env
# env_file: ./myconfig/settings-keycloak.env
env_file: ./myconfig/settings.env
depends_on:
- keycloak
networks:
- mynetwork