-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
35 lines (33 loc) · 1.21 KB
/
docker-compose.dev.yml
File metadata and controls
35 lines (33 loc) · 1.21 KB
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
# Development override — adds a mock SAML IdP for local SSO testing.
#
# Usage:
# docker-compose -f docker-compose.yml -f docker-compose.dev.yml up
#
# The mock IdP serves a login form at http://localhost:8443/simplesaml
# and returns configurable SAML assertions to the callback URL.
#
# Set these env vars in .env (or override inline):
# SAML_ENABLED=1
# SAML_ENTRY_POINT=http://mock-idp:8080/simplesaml/saml2/idp/SSOService.php
# SAML_IDP_CERT_PATH=/app/certs/mock-idp.crt
# SAML_ISSUER=http://localhost:9400/marva
# SAML_CALLBACK_URL=http://localhost:9400/marva/util/auth/callback
#
# Default test users:
# user1 / user1pass
# user2 / user2pass
version: '3'
services:
mock-idp:
image: kristophjunge/test-saml-idp
container_name: 'mock-idp'
ports:
- "8443:8443"
- "8080:8080"
environment:
- SIMPLESAMLPHP_SP_ENTITY_ID=http://localhost:9400/marva
- SIMPLESAMLPHP_SP_ASSERTION_CONSUMER_SERVICE=http://localhost:9400/marva/util/auth/callback
- SIMPLESAMLPHP_SP_SINGLE_LOGOUT_SERVICE=http://localhost:9400/marva/util/auth/logout/callback
volumes:
- ./config/simplesamlphp/authsources.php:/var/www/simplesamlphp/config/authsources.php
restart: unless-stopped