-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
61 lines (61 loc) · 2.17 KB
/
Copy pathcompose.yaml
File metadata and controls
61 lines (61 loc) · 2.17 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
services:
postgres:
image: postgres:17
environment:
POSTGRES_DB: incidentgate
POSTGRES_USER: incidentgate
POSTGRES_PASSWORD: ${INCIDENTGATE_POSTGRES_PASSWORD:-incidentgate_dev_only}
ports:
- "127.0.0.1:5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U incidentgate -d incidentgate"]
interval: 5s
timeout: 3s
retries: 20
volumes:
- incidentgate_postgres:/var/lib/postgresql/data
lab:
build:
context: .
dockerfile: docker/Dockerfile.lab
environment:
DATABASE_URL: postgresql://incidentgate:${INCIDENTGATE_POSTGRES_PASSWORD:-incidentgate_dev_only}@postgres:5432/incidentgate
INCIDENTGATE_LAB_ADMIN_TOKEN: ${INCIDENTGATE_LAB_ADMIN_TOKEN:-incidentgate-local-admin}
depends_on:
postgres:
condition: service_healthy
ports:
- "127.0.0.1:8080:8080"
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8080/health')"]
interval: 5s
timeout: 3s
retries: 20
approval-ui:
build:
context: .
dockerfile: docker/Dockerfile.lab
command: ["uv", "run", "--no-sync", "uvicorn", "incidentgate.host.server:app", "--host", "0.0.0.0", "--port", "8090"]
environment:
DATABASE_URL: postgresql://incidentgate:${INCIDENTGATE_POSTGRES_PASSWORD:-incidentgate_dev_only}@postgres:5432/incidentgate
INCIDENTGATE_UI_BIND_HOST: 127.0.0.1
INCIDENTGATE_UI_PORT: 8090
LANGFUSE_PUBLIC_KEY: ${LANGFUSE_PUBLIC_KEY:-}
LANGFUSE_SECRET_KEY: ${LANGFUSE_SECRET_KEY:-}
LANGFUSE_BASE_URL: ${LANGFUSE_BASE_URL:-}
ADVISORY_MONITOR_PROVIDER: ${ADVISORY_MONITOR_PROVIDER:-fixture}
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-}
ANTHROPIC_MODEL: ${ANTHROPIC_MODEL:-}
ANTHROPIC_TIMEOUT_SECONDS: ${ANTHROPIC_TIMEOUT_SECONDS:-10}
depends_on:
postgres:
condition: service_healthy
ports:
- "127.0.0.1:8090:8090"
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8090/healthz')"]
interval: 5s
timeout: 3s
retries: 20
volumes:
incidentgate_postgres: