-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (52 loc) · 1.33 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
---
version: '3'
services:
postgres:
image: "postgres:16.3"
ports:
- "2345:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- ${PWD}/local-db-init.sql:/docker-entrypoint-initdb.d/init.sql
mock-oauth2-server:
image: ghcr.io/navikt/mock-oauth2-server:2.0.1
ports:
- 8118:8080
environment:
JSON_CONFIG: >
{
"interactiveLogin": true,
"httpServer": "NettyWrapper",
"tokenCallbacks": [
{
"issuerId": "faketokenx",
"tokenExpiry": 600000,
"requestMappings": [
{
"requestParam": "acr",
"match": "Level4",
"claims": {
"sub": "42",
"aud": "someaudience",
"pid": "42",
"acr": "Level4"
}
},
{
"requestParam": "acr",
"match": "idporten-loa-high",
"claims": {
"sub": "42",
"aud": "someaudience",
"pid": "42",
"acr": "idporten-loa-high"
}
}
]
}
]
}
volumes:
database-data: