Repository navigation
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
86 lines (82 loc) · 2.24 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
86 lines (82 loc) · 2.24 KB
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
# Dev-only services for local Burst development.
# Start with: docker compose -f docker-compose.dev.yml up
services:
postgres:
image: postgres:17
ports:
- "5432:5432"
environment:
POSTGRES_USER: burst
POSTGRES_PASSWORD: burst
POSTGRES_DB: burst
volumes:
- pgdata:/var/lib/postgresql/data
mock-oauth:
image: ghcr.io/navikt/mock-oauth2-server:2.1.10
ports:
- "9099:8080"
environment:
SERVER_PORT: "8080"
JSON_CONFIG: >
{
"interactiveLogin": false,
"tokenCallbacks": [
{
"issuerId": "burst",
"tokenExpiry": 3600,
"requestMappings": [
{
"requestParam": "username",
"match": "alice",
"claims": {
"aud": "burst",
"roles": ["admin"]
}
},
{
"requestParam": "username",
"match": "ivy",
"claims": {
"sub": "ivy@burst.local",
"preferred_username": "ivy",
"name": "Ivy Integrator",
"email": "ivy@burst.local",
"aud": "burst",
"roles": ["integrator"]
}
},
{
"requestParam": "grant_type",
"match": "password",
"claims": {
"aud": "burst",
"roles": ["member"]
}
},
{
"requestParam": "grant_type",
"match": "authorization_code",
"claims": {
"sub": "oidc-user@burst.local",
"aud": "burst",
"roles": ["member"]
}
}
]
}
]
}
rustfs:
image: rustfs/rustfs:latest
ports:
- "9000:9000"
- "9001:9001"
environment:
RUSTFS_ROOT_USER: burst
RUSTFS_ROOT_PASSWORD: burstpass
command: server /data --console-address ":9001"
volumes:
- rustfsdata:/data
volumes:
pgdata:
rustfsdata: