forked from Seneca-CDOT/telescope
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (66 loc) · 2.41 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
# Version 3, most current, and recommended compose file version
# https://docs.docker.com/compose/compose-file/compose-versioning/
version: '3'
services:
telescope:
build:
context: .
dockerfile: Dockerfile
env_file: .env
environment:
# a place-holder for the variable passed by CLI with a default value
# the passed or default value is a command to run `telescope`
- script=${script:-start}
# override the .env variable for `REDIS_URL`
- REDIS_URL=redis://redis:${REDIS_PORT}
# variables for elasticsearch
- ES_HOST=elasticsearch
- ELASTIC_URL=http://elasticsearch
depends_on:
- redis
- login
- elasticsearch
ports:
- ${PORT}:${PORT}
redis:
image: redis:latest
ports:
- ${REDIS_PORT}:${REDIS_PORT}
command: ['redis-server', '--appendonly', 'yes']
volumes:
- ./redis-data:/data
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.3
environment:
- bootstrap.memory_lock=true
- 'ES_JAVA_OPTS=-Xms512m -Xmx512m'
- discovery.type=single-node
ports:
- ${ELASTIC_PORT}:${ELASTIC_PORT}
kibana:
image: docker.elastic.co/kibana/kibana:7.9.3
ports:
- ${KIBANA_PORT}:${KIBANA_PORT}
environment:
# Other configurations are available at https://www.elastic.co/guide/en/kibana/7.10/settings.html
ELASTICSEARCH_HOSTS: http://elasticsearch:${ELASTIC_PORT}
KIBANA_HOST: ${KIBANA_HOST}
SERVER_PORT: ${KIBANA_PORT}
# SSO Identity Provider test service, https://simplesamlphp.org
# Access to the authentication page via http://localhost:8080/simplesaml or https://localhost:8443/simplesaml
login:
environment:
- SIMPLESAMLPHP_SP_ENTITY_ID=${SAML_ENTITY_ID}
- SIMPLESAMLPHP_SP_ASSERTION_CONSUMER_SERVICE=${SSO_LOGIN_CALLBACK_URL}
- SIMPLESAMLPHP_SP_SINGLE_LOGOUT_SERVICE=${SLO_LOGOUT_CALLBACK_URL}
volumes:
- ./simplesamlphp-users.php:/var/www/simplesamlphp/config/authsources.php
- ./saml20-idp-hosted.php:/var/www/simplesamlphp/metadata/saml20-idp-hosted.php
# image owner's blog post https://medium.com/disney-streaming/setup-a-single-sign-on-saml-test-environment-with-docker-and-nodejs-c53fc1a984c9
image: kristophjunge/test-saml-idp
ports:
# These ports + port 80 are pre-defined in the latter image
# http port
- '8080:8080'
# https port
- '8443:8443'