-
Notifications
You must be signed in to change notification settings - Fork 188
/
development.yml
113 lines (101 loc) · 3.28 KB
/
development.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
################################################################################
# Development containers needed to support local development, testing, and CI.
#
# This docker-compose file is meant to be used with docker-compose.yml as a base:
#
# $ docker-compose --env-file config/env.development up -d
#
# See https://docs.docker.com/compose/production/
################################################################################
version: '3'
services:
# API Gateway
nginx:
volumes:
- ../config/nginx.conf.development.template:/etc/nginx/nginx.conf
ports:
- '8000:8000'
traefik:
command:
- '--log.level=DEBUG'
- '--api.insecure=true'
- '--providers.docker=true'
- '--providers.docker.exposedbydefault=false'
ports:
# The HTTP port
- '80:80'
# The Web UI (enabled by --api.insecure=true)
- '8080:8080'
# SSO Identity Provider test service, https://simplesamlphp.org
# Access to the login page available at http://localhost:8081
login:
image: kristophjunge/test-saml-idp
container_name: 'login'
ports:
- '8081:8080'
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:
- ../config/simplesamlphp-users.php:/var/www/simplesamlphp/config/authsources.php
- ../config/saml20-idp-hosted.php:/var/www/simplesamlphp/metadata/saml20-idp-hosted.php
# Firebase Emulator for offline testing
firebase:
container_name: 'firebase'
image: andreysenov/firebase-tools
volumes:
# Copy firebase.config into the container so we get proper ip/port binding
- ../config/firebase.json:/home/node/firebase.json
command: firebase emulators:start --project telescope --only firestore
ports:
# Emulator Suite UI
- '4000:4000'
# Cloud Firestore
- '8088:8088'
# Static Web Content for tests, hosting the contents of test/test-web-content.
# The host can use http://localhost:8888 to access these files, and Docker
# containers can use http://test-web-content instead.
test-web-content:
container_name: 'test-web-content'
image: 'nginx:stable-alpine'
ports:
- '8888:80'
volumes:
- ../test/test-web-content:/usr/share/nginx/html:ro
redis:
ports:
- '6379:6379'
elasticsearch:
ports:
- '9200:9200'
ulimits:
memlock:
soft: -1
hard: -1
users:
environment:
- FIRESTORE_EMULATOR_HOST
auth:
environment:
# We development and testing, the Auth service needs to contact the users
# service directly via Docker vs through the http://localhost domain.
- USERS_URL=http://users:7000
depends_on:
- test-web-content
# TODO: https://github.com/Seneca-CDOT/telescope/issues/2111
# parser:
# environment:
# # For development and testing, the Parser service needs to contact the users
# # service directly via Docker vs through the http://localhost domain.
# - USERS_URL=http://users:7000
planet:
ports:
- '9876:9876'
environment:
- POSTS_URL=http://posts:5555
status:
ports:
- '1111:1111'
environment:
- POSTS_URL=http://posts:5555