Added container for Netbox housekeeping command

Adds an additional container in which the new "housekeeping" command from
Netbox v3.0.0 is run.
This commit is contained in:
Tobias Genannt 2021-09-03 12:48:30 +02:00
parent 389e68f6ba
commit 58debafa8a
4 changed files with 27 additions and 3 deletions

View file

@ -20,11 +20,24 @@ services:
<<: *netbox
depends_on:
- redis
- postgres
entrypoint:
- "/sbin/tini"
- "--"
command:
- /opt/netbox/venv/bin/python
- /opt/netbox/netbox/manage.py
command:
- rqworker
netbox-housekeeping:
<<: *netbox
depends_on:
- redis
- postgres
entrypoint:
- "/sbin/tini"
- "--"
command:
- /opt/netbox/housekeeping.sh
# postgres
postgres: