-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.override.yml
More file actions
56 lines (54 loc) · 1.75 KB
/
Copy pathdocker-compose.override.yml
File metadata and controls
56 lines (54 loc) · 1.75 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
services:
# A mock identity provider, so the OpenID Connect login can be exercised locally.
# The real one has no redirect URI registered for a developer machine.
#
# https://github.com/geigerzaehler/oidc-provider-mock
#
# The container name is the external hostname on purpose: the browser and the
# application then reach the provider by the same name, so the issuer in the
# discovery document matches the one in the ID token.
#
# Claims must cover what AzureOIDCAuthenticator reads — `name` and `upn`.
idp:
image: ghcr.io/geigerzaehler/oidc-provider-mock:latest
container_name: idp.${COMPOSE_DOMAIN:?}
networks:
- app
- frontend
expose:
- "80"
labels:
- "traefik.enable=true"
- "traefik.docker.network=frontend"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME:?}_idp.rule=Host(`idp.${COMPOSE_DOMAIN:?}`)"
- "traefik.http.services.${COMPOSE_PROJECT_NAME:?}_idp.loadbalancer.server.port=80"
command:
- "--port"
- "80"
- "--user-claims"
- '{"sub": "admin", "name": "Admin Jensen", "upn": "admin@example.org", "email": "admin@example.org"}'
- "--user-claims"
- '{"sub": "editor", "name": "Ed Editor", "upn": "editor@example.org", "email": "editor@example.org"}'
rabbit:
image: rabbitmq:4-management-alpine
networks:
- app
- frontend
ports:
- "15672"
environment:
- RABBITMQ_DEFAULT_USER=user
- RABBITMQ_DEFAULT_PASS=password
- RABBITMQ_ERLANG_COOKIE='local-dev-cookie-not-a-secret'
healthcheck:
test: rabbitmq-diagnostics check_port_connectivity
interval: 1s
timeout: 3s
retries: 30
node:
profiles:
- dev
image: node:24
volumes:
- .:/app
working_dir: /app