45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
towerops-agent:
|
|
image: registry.gitlab.com/towerops/towerops-agent:latest
|
|
container_name: towerops-agent
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
# Required: Your Towerops API URL
|
|
- TOWEROPS_API_URL=https://app.towerops.com
|
|
|
|
# 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"
|
|
|
|
volumes:
|
|
# Persistent storage for metrics buffering
|
|
- ./data:/data
|
|
|
|
# Optional: Resource limits
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '0.5'
|
|
memory: 512M
|
|
reservations:
|
|
cpus: '0.1'
|
|
memory: 128M
|