-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdev.docker-compose.yml
124 lines (114 loc) · 3.26 KB
/
dev.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
services:
postgres:
image: postgres
container_name: postgres-dev-delegator
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
healthcheck:
test: ['CMD-SHELL', 'pg_isready -d postgres -U postgres']
start_period: 20s
interval: 30s
retries: 5
timeout: 5s
volumes:
- delegator-dev:/var/lib/postgresql/data
prisma_studio:
image: timothyjmiller/prisma-studio
restart: unless-stopped
depends_on:
- postgres
ports:
- '5555:5555'
environment:
PROJECT_NAME: 'MUNify DELEGATOR'
POSTGRES_URL: postgres://postgres:postgres@postgres:5432/postgres
PRISMA_STUDIO_PORT: 5555
POSTGRES_PATH: /postgres
# When using the mock server this can be helpful to paste into the form to create a valid token with claims etc.
# {
# "email": "[email protected]",
# "family_name": "Munify",
# "given_name": "Delegator Jr.",
# "preferred_username": "delegatoruser_123",
# "locale": "de",
# "urn:zitadel:iam:org:project:275671427955294244:roles": {"admin": {}}
# }
mockoidc:
image: ghcr.io/navikt/mock-oauth2-server:2.1.10
ports:
- 8080:8080
environment:
JSON_CONFIG: >
{
"interactiveLogin": true,
"httpServer": "NettyWrapper",
"tokenCallbacks": [
{
"issuerId": "issuer1",
"tokenExpiry": 120,
"requestMappings": [
{
"requestParam": "code",
"match": "code1",
"claims": {
"sub": "subByCode",
"aud": [
"audByCode"
]
}
}
]
}
],
"loginPagePath": "/static/mock-oidc-landingpage.html"
}
volumes:
- ./mock-oidc-landingpage.html:/static/mock-oidc-landingpage.html
# app:
# image: munifydelegator
# depends_on:
# - postgres
# network_mode: host
# environment:
# - PORT=3000
# - DATABASE_URL=postgres://postgres:postgres@localhost:5432/postgres
# - PUBLIC_OIDC_AUTHORITY=http://localhost:8080
# # - PUBLIC_OIDC_AUTHORITY=https://guard.munify.cloud
# - PUBLIC_OIDC_CLIENT_ID=delegator
# # - PUBLIC_OIDC_CLIENT_ID=275671515582758948@dev
# - SECRET=123
# prisma_studio:
# image: timothyjmiller/prisma-studio
# restart: unless-stopped
# ports:
# - 5555:5555
# depends_on:
# - postgres
# environment:
# PROJECT_NAME: 'MUNify DELEGATOR'
# POSTGRES_URL: postgres://postgres:postgres@postgres:5432/postgres
# PRISMA_STUDIO_PORT: 5555
# POSTGRES_PATH: /postgres
# web dashboard available at http://localhost:16686
# jaeger:
# image: jaegertracing/jaeger
# ports:
# - '5778:5778'
# - '16686:16686'
# - '4317:4317'
# - '4318:4318'
# - '14250:14250'
# - '14268:14268'
# - '9411:9411'
# command:
# [
# '--set',
# 'receivers.otlp.protocols.http.endpoint=0.0.0.0:4318',
# '--set',
# 'receivers.otlp.protocols.grpc.endpoint=0.0.0.0:4317'
# ]
volumes:
delegator-dev: