-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (64 loc) · 1.79 KB
/
docker-compose.yml
File metadata and controls
69 lines (64 loc) · 1.79 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
# SPDX-License-Identifier: PMPL-1.0-or-later
# Docker Compose configuration for gitbot-fleet
version: '3.8'
services:
# Fleet Dashboard - Web UI and API
dashboard:
build:
context: .
dockerfile: dashboard/Dockerfile
container_name: fleet-dashboard
ports:
- "8080:8080"
environment:
FLEET_REPO_PATH: ${FLEET_REPO_PATH:-/repo}
FLEET_REPO_NAME: ${FLEET_REPO_NAME:-default}
RUST_LOG: ${RUST_LOG:-fleet_dashboard=info}
volumes:
# Mount repository as read-only
- ${HOST_REPO_PATH:-./test-repo}:/repo:ro
# Persistent storage for context
- fleet-context:/var/lib/fleet
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/api/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
networks:
- fleet-network
labels:
com.hyperpolymath.fleet.service: "dashboard"
com.hyperpolymath.fleet.version: "0.2.0"
# Fleet CLI - Background coordinator (optional)
coordinator:
build:
context: .
dockerfile: shared-context/fleet-cli/Dockerfile
container_name: fleet-coordinator
environment:
FLEET_REPO_PATH: /repo
FLEET_REPO_NAME: ${FLEET_REPO_NAME:-default}
volumes:
- ${HOST_REPO_PATH:-./test-repo}:/repo:ro
- fleet-context:/var/lib/fleet
command: ["fleet", "run", "--continue-on-error"]
restart: "no"
depends_on:
- dashboard
networks:
- fleet-network
labels:
com.hyperpolymath.fleet.service: "coordinator"
com.hyperpolymath.fleet.version: "0.2.0"
volumes:
fleet-context:
driver: local
labels:
com.hyperpolymath.fleet.volume: "context"
networks:
fleet-network:
driver: bridge
labels:
com.hyperpolymath.fleet.network: "main"