-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
97 lines (94 loc) · 3.96 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
volumes:
pgdata:
services:
db:
image: postgres
volumes:
- pgdata:/var/lib/postgresql/data
environment:
POSTGRES_DB: a11y
POSTGRES_PASSWORD: a11y
# POSTGRES_HOST_AUTH_METHOD: trust
ports:
- "5432:5432"
mock-oauth2-server:
image: ghcr.io/navikt/mock-oauth2-server:1.0.0
ports:
- "8080:8080"
environment:
JSON_CONFIG: |
{
"interactiveLogin": false,
"tokenCallbacks": [
{
"issuerId": "issueissue",
"requestMappings": [
{
"requestParam": "grant_type",
"claims": {
"aud": ["a11y"],
"email" : "[email protected]",
"name": "Carl Good Morning",
"preferred_username": "[email protected]",
"oid": "[email protected]",
"preferred_username": "[email protected]",
"groups": ["admins"]
}
}
]
}
]
}
redis:
image: redis:7
ports:
- "6379:6379"
wonderwall:
image: ghcr.io/nais/wonderwall:2023-08-10-135210-2825608
# alternatively,
# build: .
ports:
- "3000:3000"
command: >
--openid.client-id=a11y
--openid.well-known-url=http://host.docker.internal:8080/issueissue/.well-known/openid-configuration
--ingress=http://localhost:3000
--bind-address=0.0.0.0:3000
--upstream-host=host.docker.internal:8081
--redis.address=redis:6379
--redis.tls=false
--log-level=debug
--log-format=text
--auto-login=true
restart: on-failure
environment:
WONDERWALL_OPENID_CLIENT_JWK: >
{
"kty":"RSA",
"alg":"RS256",
"use":"sig",
"p":"_xCPvqs85ZZVg460Qfot26rQoNRPTOVDo5p4nqH3ep6BK_5TvoU5LFXd26W-1V1Lc5fcvvftClPOT201xgat4DVtliNtoc8od_tWr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XZWjNcnPKdKJDqF4WAtAgSIznz6SbSQMUoDD8IoyraPFCck",
"n":"7CU8tTANiN6W_fD9SP1dK2vQvCkf7-nwvBYe5CfANV0_Bb0ZmQb77FVVsl1beJ7EYLz3cJmL8Is1RCHKUK_4ydqihNjEWTyZiQoj1i67pkqk_zRvfQa9raZR4uZbuBxx7dWUoPC6fFH2F_psAlHW0zf90fsLvhB6Aqq3uvO7XXqo8qNl9d_JSG0Rg_2QUYVb0WKmPVbbhgwtkFu0Tyuev-VZ9IzTbbr5wmZwEUVY7YAi73pDJkcZt5r2WjOF_cuIXe-O2vwbOrRgmJfHO9--mVLdATnEyrb6q2oy_75h6JjP-R4-TD1hyoFFoE2gmj-kSS6Z_Gggljs3Aw7--Nh10Q"
}
#statements:
# image: awesomepossum:latest
# ports:
# - "8081:8081"
# depends_on:
# - mock-oauth2-server
# restart: on-failure
# environment:
# AZURE_APP_CLIENT_ID: "a11y"
# AZURE_APP_WELL_KNOWN_URL: "http://host.docker.internal:8080/issueissue/.well-known/openid-configuration"
# DB_DATABASE: "a11y"
# DB_HOST: "host.docker.internal"
# DB_PASSWORD: "a11y"
# DB_PORT: "5432"
# DB_USERNAME: "postgres"
# CORS_ALLOWED_ORIGIN: "*"