-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcompose.agent.yaml
More file actions
54 lines (51 loc) · 1.44 KB
/
compose.agent.yaml
File metadata and controls
54 lines (51 loc) · 1.44 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
# Agent/CI compose overlay — replaces Keycloak with a fake OIDC provider.
#
# Usage:
# docker compose -f compose.yaml -f compose.agent.yaml up -d
#
# This overlay:
# - Disables Keycloak (scales to 0)
# - Adds a lightweight fake OIDC provider on port 8180
# - Configures the API to use the fake provider
# - Skips the dev-ui entirely
services:
# Disable Keycloak
keycloak:
deploy:
replicas: 0
# Fake OIDC provider — lightweight replacement for Keycloak
fake-oidc:
build:
context: ./src/api/tests/fakes
dockerfile: Dockerfile
ports:
- "8180:8180"
networks:
- kartograph
healthcheck:
test:
[
"CMD",
"python",
"-c",
"import urllib.request; urllib.request.urlopen('http://localhost:8180/realms/kartograph/.well-known/openid-configuration').read()",
]
interval: 5s
timeout: 3s
retries: 5
start_period: 3s
# Override API to use fake OIDC provider
api:
environment:
- KARTOGRAPH_OIDC_ISSUER_URL=http://fake-oidc:8180/realms/kartograph
- KARTOGRAPH_OIDC_CLIENT_ID=kartograph-api
- KARTOGRAPH_OIDC_CLIENT_SECRET=kartograph-api-secret
depends_on:
postgres:
condition: service_healthy
db-migrate:
condition: service_completed_successfully
spicedb-schema-init:
condition: service_completed_successfully
fake-oidc:
condition: service_healthy