Some checks failed
Rust Cross-Platform Build / Detect Rust Project (push) Successful in 5s
Rust Cross-Platform Build / Set Tag Name (push) Successful in 4s
Rust Cross-Platform Build / Setup Rust Toolchain (push) Successful in 23s
Rust Cross-Platform Build / Run Tests (push) Successful in 1m0s
Rust Cross-Platform Build / Build (x86_64-unknown-linux-gnu) (push) Successful in 2m25s
Rust Cross-Platform Build / Build (x86_64-pc-windows-gnu) (push) Successful in 3m2s
Rust Cross-Platform Build / Create Tag (push) Successful in 5s
Rust Cross-Platform Build / Build and Push Docker Image (push) Failing after 12s
Rust Cross-Platform Build / Workflow Summary (push) Successful in 1s
23 lines
997 B
YAML
23 lines
997 B
YAML
watcher-agent:
|
|
image: git.triggermeelmo.com/donpat1to/watcher-agent:development
|
|
container_name: watcher-agent
|
|
restart: always
|
|
privileged: true # Grants full hardware access (use with caution)
|
|
env_file: .env
|
|
pid: "host"
|
|
volumes:
|
|
# Mount critical system paths for hardware monitoring
|
|
- /sys:/sys:ro # CPU/GPU temps, sensors
|
|
- /proc:/proc # Process/CPU stats
|
|
- /dev:/dev:ro # Disk/GPU device access
|
|
- /var/run/docker.sock:/var/run/docker.sock # Docker API access
|
|
- /:/root:ro # Access to for df-command
|
|
# Application volumes
|
|
- ./config:/app/config:ro
|
|
- ./logs:/app/logs
|
|
network_mode: host # Uses host network (for correct IP/interface detection)
|
|
healthcheck:
|
|
test: ["CMD", "/usr/local/bin/WatcherAgent", "healthcheck"]
|
|
interval: 30s
|
|
timeout: 3s
|
|
retries: 3 |