Files
netbox-reporter/docker-compose.yml
ansible user d944e464d0 first commit
2025-10-23 12:56:30 +02:00

31 lines
863 B
YAML

services:
netbox-reporter:
build:
context: .
dockerfile: Dockerfile
image: netbox-reporter:latest
# Share host network so "localhost:15672" talks to RabbitMQ on the host
network_mode: host
working_dir: /opt/containers/netbox-reporter/app
entrypoint: ["/usr/bin/tini", "--", "/usr/local/bin/netbox-reporter-entrypoint"]
command: ["/opt/containers/netbox-reporter/app/bin/netbox-reporter.sh"]
restart: unless-stopped
tty: true
stdin_open: true
# Load ALL runtime parameters from .env (one file to rule them all)
env_file:
- .env
volumes:
- ./data:/opt/containers/netbox-reporter/data:rw
healthcheck:
test: ["CMD-SHELL", "curl -fsS -u \"$RMQ_USER:$RMQ_PASS\" \"http://$RMQ_HOST:$RMQ_PORT/api/overview\" >/dev/null"]
interval: 30s
timeout: 10s
retries: 5