31 lines
863 B
YAML
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
|