-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.example.yml
40 lines (40 loc) · 1.48 KB
/
docker-compose.example.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
services:
redis:
image: redis:7
ports:
- "6379:6379"
mock-oauth2-server:
image: ghcr.io/navikt/mock-oauth2-server:2.1.8
ports:
- "8888:8080"
environment:
JSON_CONFIG: "{\"interactiveLogin\":false}"
wonderwall:
image: ghcr.io/nais/wonderwall:latest
ports:
- "3000:3000"
command: >
--openid.client-id=bogus
--openid.client-secret=not-so-secret
--openid.well-known-url=http://localhost:8888/default/.well-known/openid-configuration
--ingress=http://localhost:3000
--bind-address=0.0.0.0:3000
--upstream-host=upstream:4000
--redis.uri=redis://redis:6379
--log-level=debug
--log-format=text
restart: on-failure
extra_hosts:
# Wonderwall needs to both reach and redirect user agents to the mock-oauth2-server:
# - 'mock-oauth2-server:8888' resolves from the container, but is not resolvable for user agents at the host (e.g. during redirects).
# - 'localhost:8888' allows user agents to resolve redirects to the mock-oauth2-server, but breaks connectivity from the container itself.
# This additional mapping allows the container to reach the mock-oauth2-server at 'localhost' through the host network, as well as allowing user agents to correctly resolve redirects.
- localhost:host-gateway
upstream:
image: mendhak/http-https-echo:30
ports:
- "4000:4000"
environment:
HTTP_PORT: 4000
JWT_HEADER: Authorization
LOG_IGNORE_PATH: /