-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
119 lines (111 loc) · 3.78 KB
/
docker-compose.dev.yml
File metadata and controls
119 lines (111 loc) · 3.78 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
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
---
services:
postgres:
image: postgres:17.4-alpine
environment:
POSTGRES_USER: regelrecht
POSTGRES_PASSWORD: regelrecht_dev
POSTGRES_DB: regelrecht_pipeline
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: [CMD-SHELL, pg_isready -U regelrecht -d regelrecht_pipeline]
interval: 5s
retries: 5
admin:
build:
context: .
dockerfile: packages/admin/Dockerfile
secrets:
- GITHUB_TOKEN
depends_on:
postgres:
condition: service_healthy
environment:
DATABASE_URL: postgresql://regelrecht:regelrecht_dev@postgres:5432/regelrecht_pipeline
STATIC_DIR: /app/static
RUST_LOG: info
ports:
- ${ADMIN_PORT:-8000}:8000
harvester-worker:
build:
context: .
dockerfile: packages/pipeline/Dockerfile.harvester-worker
depends_on:
postgres:
condition: service_healthy
environment:
DATABASE_URL: postgresql://regelrecht:regelrecht_dev@postgres:5432/regelrecht_pipeline
REGULATION_REPO_PATH: /tmp/regulation-repo
REGULATION_OUTPUT_BASE: regulation/nl
WORKER_POLL_INTERVAL_SECS: ${WORKER_POLL_INTERVAL_SECS:-5}
WORKER_MAX_POLL_INTERVAL_SECS: ${WORKER_MAX_POLL_INTERVAL_SECS:-60}
RUST_LOG: info
volumes:
- regulation-repo-harvester:/tmp/regulation-repo
enrich-worker:
build:
context: .
dockerfile: packages/pipeline/Dockerfile.enrich-worker
depends_on:
postgres:
condition: service_healthy
environment:
DATABASE_URL: postgresql://regelrecht:regelrecht_dev@postgres:5432/regelrecht_pipeline
# LLM credentials required for enrich jobs (set in .env)
LLM_PROVIDER: ${LLM_PROVIDER:-opencode}
OPENCODE_MODEL: ${OPENCODE_MODEL:-vlam/ubiops-deployment/bzk-dig-mistralmedium-flexibel//chat-model}
VLAM_API_KEY: ${VLAM_API_KEY:-}
VLAM_BASE_URL: ${VLAM_BASE_URL:-}
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-}
REGULATION_REPO_PATH: /tmp/regulation-repo
REGULATION_OUTPUT_BASE: regulation/nl
WORKER_POLL_INTERVAL_SECS: ${WORKER_POLL_INTERVAL_SECS:-5}
WORKER_MAX_POLL_INTERVAL_SECS: ${WORKER_MAX_POLL_INTERVAL_SECS:-60}
RUST_LOG: info
volumes:
- regulation-repo-enrich:/tmp/regulation-repo
frontend:
build:
context: .
dockerfile: frontend/Dockerfile
secrets:
- GITHUB_TOKEN
ports:
- ${FRONTEND_PORT:-3000}:8000
prometheus:
image: prom/prometheus:v3.2.1
volumes:
- ./dev/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prometheus-data:/prometheus
ports:
- ${PROMETHEUS_PORT:-9090}:9090
grafana:
image: grafana/grafana-oss:12.4.0
volumes:
- ./dev/grafana-datasource-local.yaml:/etc/grafana/provisioning/datasources/prometheus.yaml:ro
- ./packages/grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards:ro
- ./packages/grafana/provisioning/alerting:/etc/grafana/provisioning/alerting:ro
- grafana-data:/var/lib/grafana
environment:
GF_SERVER_HTTP_PORT: '3000'
GF_SERVER_ROOT_URL: http://localhost:${GRAFANA_PORT:-3001}
GF_SECURITY_ADMIN_USER: admin
GF_SECURITY_ADMIN_PASSWORD: admin
GF_AUTH_ANONYMOUS_ENABLED: 'false'
GF_AUTH_GENERIC_OAUTH_ENABLED: 'false'
GF_UNIFIED_ALERTING_ENABLED: 'true'
GF_ALERTING_ENABLED: 'false'
GF_ANALYTICS_CHECK_FOR_UPDATES: 'false'
# Placeholder so alerting provisioning doesn't fail on missing webhook
MATTERMOST_WEBHOOK_URL: http://localhost:0/webhook-not-configured
# Port mapping set via override files (compose.local.yaml / compose.native.yaml)
secrets:
GITHUB_TOKEN:
environment: GITHUB_TOKEN
volumes:
pgdata:
regulation-repo-harvester:
regulation-repo-enrich:
prometheus-data:
grafana-data: