This repository has been archived by the owner on Jun 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
144 lines (128 loc) · 5 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
version: "2"
services:
mfaidp:
image: silintl/ssp-base:develop
ports:
- "52020:80"
# - "9000:9000"
volumes:
- ./:/mfa
- ./development/enable-debug.sh:/data/enable-debug.sh
- ./development/run-dev.sh:/data/run-dev.sh
- ./development/run-tests.sh:/data/run-tests.sh
- ./development/symlink.sh:/data/symlink.sh
- ./development/idp-local/UserPass.php:/data/vendor/simplesamlphp/simplesamlphp/modules/exampleauth/lib/Auth/Source/UserPass.php
- ./features:/data/features
- ${COMPOSER_CACHE_DIR}:/composer
# Revert to standard SSOService.php instead of using sildisco's
- ./development/idp-local/www_saml2_idp_SSOService.php:/data/vendor/simplesamlphp/simplesamlphp/www/saml2/idp/SSOService.php
# Utilize custom certs
- ./development/idp-local/cert:/data/vendor/simplesamlphp/simplesamlphp/cert
# Utilize custom configs
- ./development/idp-local/config/authsources.php:/data/vendor/simplesamlphp/simplesamlphp/config/authsources.php
# Utilize custom metadata
- ./development/idp-local/metadata/saml20-idp-hosted.php:/data/vendor/simplesamlphp/simplesamlphp/metadata/saml20-idp-hosted.php
- ./development/idp-local/metadata/saml20-sp-remote.php:/data/vendor/simplesamlphp/simplesamlphp/metadata/saml20-sp-remote.php
env_file:
- ./common.env
- ./local.env
environment:
- APPLICATION_ENV=dev
- ADMIN_PASS=a
- IDP_DOMAIN_NAME=mfa-idp.local:52020
- IDP_NAME=Local IdP
- MFA_SETUP_URL=http://mfa-pw-manager.local:52022/module.php/core/authenticate.php?as=mfa-idp
- MFA_SETUP_URL_FOR_TESTS=http://mfapwmanager/module.php/core/authenticate.php?as=mfa-idp-no-port
- SECRET_SALT=NOT-a-SECRET-1362102e525237994020fb7ff18753c8
- SECURE_COOKIE=false
- SHOW_SAML_ERRORS=true
- REMEMBER_ME_SECRET=not-a-secret-570c5b18dacd45bd
- THEME_USE=default
- COMPOSER_CACHE_DIR=/composer
# user: "${DOCKER_UIDGID}"
command: ["/data/run-dev.sh"]
mfasp:
image: silintl/ssp-base:develop
volumes:
# Utilize custom certs
- ./development/sp-local/cert:/data/vendor/simplesamlphp/simplesamlphp/cert
# Utilize custom configs
- ./development/sp-local/config/authsources-mfa-sp.php:/data/vendor/simplesamlphp/simplesamlphp/config/authsources.php
# Utilize custom metadata
- ./development/sp-local/metadata/saml20-idp-remote.php:/data/vendor/simplesamlphp/simplesamlphp/metadata/saml20-idp-remote.php
ports:
- "52021:80"
environment:
- ADMIN_PASS=sp1
- IDP_NAME=THIS VARIABLE IS REQUIRED BUT PROBABLY NOT USED
- SECRET_SALT=NOT-a-secret-h57fjemb&dn^nsJFGNjweJz1
- SECURE_COOKIE=false
- SHOW_SAML_ERRORS=true
- SAML20_IDP_ENABLE=false
- ADMIN_PROTECT_INDEX_PAGE=false
- THEME_USE=default
mfapwmanager:
image: silintl/ssp-base:develop
volumes:
# Utilize custom certs
- ./development/sp-local/cert:/data/vendor/simplesamlphp/simplesamlphp/cert
# Utilize custom configs
- ./development/sp-local/config/authsources-mfa-pw-manager.php:/data/vendor/simplesamlphp/simplesamlphp/config/authsources.php
# Utilize custom metadata
- ./development/sp-local/metadata/saml20-idp-remote.php:/data/vendor/simplesamlphp/simplesamlphp/metadata/saml20-idp-remote.php
ports:
- "52022:80"
environment:
- ADMIN_PASS=sp1
- IDP_NAME=THIS VARIABLE IS REQUIRED BUT PROBABLY NOT USED
- SECRET_SALT=NOT-a-secret-k49fjfkw73hjf9t87wjiw
- SECURE_COOKIE=false
- SHOW_SAML_ERRORS=true
- SAML20_IDP_ENABLE=false
- ADMIN_PROTECT_INDEX_PAGE=false
- THEME_USE=default
composer:
image: silintl/ssp-base:develop
volumes:
- ./composer.json:/data/composer.json
- ./composer.lock:/data/composer.lock
- ./vendor:/data/vendor
- ${COMPOSER_CACHE_DIR}:/composer
env_file:
- ./local.env
environment:
- COMPOSER_CACHE_DIR=/composer
user: "${DOCKER_UIDGID}"
working_dir: /data
node:
image: node:lts-alpine
volumes:
- ./package.json:/data/package.json
- ./package-lock.json:/data/package-lock.json
- ./node_modules:/data/node_modules
working_dir: /data
tests:
image: silintl/ssp-base:develop
volumes_from:
- mfaidp
volumes:
- ./composer.json:/data/composer.json
- ./composer.lock:/data/composer.lock
- ./development/run-tests.sh:/data/run-tests.sh
- ./features:/data/features
- ./src:/data/src
- ./vendor:/data/vendor
- ${COMPOSER_CACHE_DIR}:/composer
env_file:
- ./common.env
- ./local.env
environment:
- MFA_SETUP_URL_FOR_TESTS=http://mfapwmanager/module.php/core/authenticate.php?as=mfa-idp-no-port
- THEME_USE=default
- COMPOSER_CACHE_DIR=/composer
user: "${DOCKER_UIDGID}"
working_dir: /data
command: ["/data/run-tests.sh"]