Version 0.26.0
This version brings an often requested feature to make advanced configuration possible.
Besides that we squashed a few bugs.
We'd like to thank our community for their contributions and their patience.
PostgreSQL 12
Our docker-compose file was updated to use PostgreSQL 12.
Note that you will need to take manual action after you upgrade a live PostgreSQL database.
If your database is not too big, a full backup (with PostgreSQL 11, i.e. before the upgrade) and restore (with a clean PostgreSQL 12, i.e. after the upgrade) is probably the easiest to achieve. Our troubleshooting wiki page has instructions on how to backup and restore a Netbox database. Please test the procedure on a test system first!
Note that there is no requirement to update to PostgreSQL 12, you can stick to version 11 just fine. You could do this with a docker-compose.override.yml
like so:
version: '3.4'
services:
postgres:
image: postgres:11-alpine
Dynamic Configration #343
We have added the possibility to load additional configuration files when Netbox Docker starts.
If you use our docker-compose.yml
file, then just put any relevant additional configuration files into the configuration
directory.
Otherwise mount them to /etc/netbox/config/
within the container.
All .py
files are loaded.
They can contain arbitrary Python code.
Be aware that the files are evaluated in alphabetical order while configuration.py
will always be first.
Later files overwrite the settings of earlier files.
The same works for LDAP configurations:
If you use our docker-compose.yml
file, then just put any relevant additional LDAP configuration files into the configuration/ldap
directory.
Otherwise mount them to /etc/netbox/config/ldap/
within the container.
All .py
files are loaded.
They can contain arbitrary Python code.
Be aware that the files are evaluated in alphabetical order while configuration.py
will always be first.
Later files overwrite the settings of earlier files.
Here's an example:
# In the repo: configuration/configuration.py
# -- OR --
# In the container: /etc/netbox/config/retro.py
from datetime import datetime
now = datetime.now().strftime("%d/%m/%Y %H:%M:%S")
BANNER_TOP = f'<marquee width="200px">This instance started on {now}.</marquee>'
Preparations for Monitoring with Prometheus #344
This project does now contain all changes that would be necessary to monitor Netbox Docker using Prometheus.
See https://github.com/netbox-community/netbox-docker/wiki/Monitoring for a sample setup.
Prefer secret to env var if both are available #291
If a secret and env var for the same setting are available, then prefer the secret.
Add REMOVE_AUTH_*
configurations #310
REMOTE_AUTH_ENABLED
, REMOTE_AUTH_BACKEND
, REMOTE_AUTH_HEADER
, REMOTE_AUTH_AUTO_CREATE_USER
and REMOTE_AUTH_DEFAULT_GROUPS
can be configured via environment variables.
Add AUTH_LDAP_MIRROR_GROUPS
configuration #327
Add ability to mirror ldap groups into Netbox (AUTH_LDAP_MIRROR_GROUPS
)
Allow primary_ip
in initializers #301
Add optional primary_ip
on initializer
Compatibility
This version of Netbox Docker is compatible with Netbox v2.9.x