29 lines
787 B
YAML
29 lines
787 B
YAML
services:
|
|
towerops-agent:
|
|
image: codeberg.org/towerops-agent/towerops-agent:latest
|
|
pull_policy: always
|
|
container_name: towerops-agent
|
|
restart: unless-stopped
|
|
cap_add:
|
|
- NET_RAW
|
|
|
|
environment:
|
|
# Required: Agent authentication token (from Towerops web UI)
|
|
# Get this from: Organization > Agents > Create New Agent
|
|
- TOWEROPS_AGENT_TOKEN=your-agent-token-here
|
|
|
|
# Optional: Log level (error, warn, info, debug)
|
|
# Default: info
|
|
- LOG_LEVEL=info
|
|
|
|
# Optional: Enable SNMP trap listener
|
|
# Default: false
|
|
- TRAP_ENABLED=true
|
|
|
|
# Optional: SNMP trap listener port (only used if TRAP_ENABLED=true)
|
|
# Default: 162
|
|
- TRAP_PORT=162
|
|
|
|
ports:
|
|
# SNMP trap listener (UDP)
|
|
- "162:162/udp"
|