-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (40 loc) · 1.09 KB
/
Copy pathdocker-compose.yml
File metadata and controls
42 lines (40 loc) · 1.09 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
services:
homelab-agent:
build: .
container_name: homelab-agent
restart: unless-stopped
init: true
privileged: false
environment:
- DASHBOARD_URL=${DASHBOARD_URL:?Set DASHBOARD_URL in .env}
- API_KEY_FILE=/run/secrets/agent_api_key
- ALLOW_INSECURE_HTTP=${ALLOW_INSECURE_HTTP:-false}
- POLL_INTERVAL=10000
- EVENT_CHECK_INTERVAL=5000
- LOG_LEVEL=info
- HOST_ROOT=/host
- STATE_DIR=/var/lib/homelab-agent
secrets:
- agent_api_key
volumes:
- /:/host:ro,rslave
- /var/run/docker.sock:/var/run/docker.sock:ro
- homelab-agent-state:/var/lib/homelab-agent
read_only: true
tmpfs:
- /tmp:size=32m,mode=1777
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
pids_limit: 256
mem_limit: 256m
cpus: 1.0
# For SMART monitoring, add:
# --device /dev/sda:/dev/sda
# For Proxmox API access, ensure the agent runs on the Proxmox host directly
secrets:
agent_api_key:
file: ${AGENT_API_KEY_FILE:-./secrets/agent-api-key}
volumes:
homelab-agent-state: