first commit

This commit is contained in:
ansible user
2025-10-23 12:56:30 +02:00
commit d944e464d0
7 changed files with 1048 additions and 0 deletions

30
docker-compose.yml Normal file
View File

@@ -0,0 +1,30 @@
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