docker-netbox
docker-netbox copied to clipboard
Docker image for https://github.com/netbox-community/netbox
Netbox docker image
Docker image for NetBox.
There are no plans for new features, issues that get filed are responded to on a best-effort basis.
Using docker-compose
-
Create a copy of
docker-compose.example.yml -
Adapt at least the following environment variables:
ALLOWED_HOSTS: accepts multiple hostnames separated using spacesSECRET_KEY: required, should be randomly generated and 50 characters or more
Optionally you can also change the database password by modifying
POSTGRES_PASSWORDandDB_PASS. -
Create a new superuser using the following command:
$ sudo docker-compose run --rm netbox createsuperuser -
Start the service stack:
$ sudo docker-compose up -d
NetBox will be available under port 8000.
Additional configuration
BASE_PATH: set this if netbox is running behind a reverse proxy and you need the URL to be rewritten, for example if you want to reach your netbox via example.com/netbox/, set BASE_PATH='netbox/'