-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (37 loc) · 1.64 KB
/
docker-compose.yml
File metadata and controls
39 lines (37 loc) · 1.64 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
# ══════════════════════════════════════════════════════════════
# Auto-Heal Locators — Docker Compose
# ──────────────────────────────────────────────────────────────
# One-command deployment:
# docker compose up -d
#
# View dashboard:
# http://localhost:4040
#
# Push healing events from CI/local:
# curl -X POST http://your-server:4040/api/events \
# -H "Content-Type: application/json" \
# -d '{"type":"healing_attempt","original":"#old","healed":".new","strategy":"id","success":true}'
# ══════════════════════════════════════════════════════════════
services:
dashboard:
build: .
container_name: auto-heal-dashboard
restart: unless-stopped
ports:
- "${DASHBOARD_PORT:-4040}:4040"
volumes:
- heal-data:/data
environment:
- NODE_ENV=production
- AUTO_HEAL_HISTORY_PATH=/data/history.json
- AUTO_HEAL_REPORT_DIR=/data/reports
- AUTO_HEAL_DASHBOARD_PORT=4040
healthcheck:
test: ["CMD", "node", "-e", "const http = require('http'); const req = http.get('http://localhost:4040/health', (res) => { process.exit(res.statusCode === 200 ? 0 : 1); }); req.on('error', () => process.exit(1));"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
volumes:
heal-data:
driver: local