-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
95 lines (89 loc) · 2.19 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
90
91
92
93
94
95
version: '3'
services:
haproxy:
image: haproxy:2.9
volumes:
- ./resources/haproxy:/usr/local/etc/haproxy:ro
ports:
- "9080:9080"
depends_on:
- spoe
- dex
- protected-backend
- unprotected-backend
- unauthorized-backend
networks:
haproxy-spoe-net:
aliases:
- dex.example.com
protected-backend:
image: nginx:1.21.5
volumes:
- ./resources/protected:/usr/share/nginx/html
- ./resources/nginx/default.conf:/etc/nginx/conf.d/default.conf
networks:
haproxy-spoe-net:
unprotected-backend:
image: nginx:1.21.5
volumes:
- ./resources/unprotected:/usr/share/nginx/html
- ./resources/nginx/default.conf:/etc/nginx/conf.d/default.conf
networks:
haproxy-spoe-net:
unauthorized-backend:
image: nginx:1.21.5
volumes:
- ./resources/unauthorized:/usr/share/nginx/html
- ./resources/nginx/default.conf:/etc/nginx/conf.d/default.conf
networks:
haproxy-spoe-net:
spoe:
build: .
volumes:
- .:/app
- ./resources/scripts:/scripts
- ./resources/configuration:/configuration
working_dir: /app
command: /scripts/run.sh
security_opt:
- seccomp:unconfined
- apparmor:unconfined
cap_add:
- SYS_PTRACE
depends_on:
- ldap
- dex
networks:
haproxy-spoe-net:
dex:
image: quay.io/dexidp/dex
command: dex serve /dex/config.yaml
volumes:
- ./resources/dex/config.yaml:/dex/config.yaml
ports:
- "5556:5556"
depends_on:
- ldap
networks:
haproxy-spoe-net:
ldap:
image: osixia/openldap:1.4.0
environment:
- LDAP_ORGANISATION=MyCompany
- LDAP_DOMAIN=example.com
- LDAP_ADMIN_PASSWORD=password
- LDAP_CONFIG_PASSWORD=password
- LDAP_ADDITIONAL_MODULES=memberof
- LDAP_ADDITIONAL_SCHEMAS=openldap
- LDAP_FORCE_RECONFIGURE=true
- LDAP_TLS_VERIFY_CLIENT=try
command:
- '--copy-service'
- '--loglevel'
- 'debug'
volumes:
- ./resources/ldap:/container/service/slapd/assets/config/bootstrap/ldif/custom
networks:
haproxy-spoe-net:
networks:
haproxy-spoe-net: