2021-04-21 00:55:42 +00:00
# [Netbox](https://github.com/netbox-community/netbox) is an IP address
# management (IPAM) and data center infrastructure management (DCIM) tool.
# Initially conceived by the network engineering team at DigitalOcean, NetBox
# was developed specifically to address the needs of network and infrastructure
# engineers. It is intended to function as a domain-specific source of truth for
# network operations.
2021-04-10 10:16:29 +00:00
---
version : "2.1"
services :
netbox :
image : ghcr.io/linuxserver/netbox
container_name : netbox
environment :
# for GroupID
- PUID=${PUID:-1024}
# for UserID
- PGID=${PGID:-100}
2021-04-27 00:56:19 +00:00
# Specify a timezone to use for example Europe/Amsterdam
- TZ=${TZ:-Europe/Amsterdam}
# Email address for `admin` account
2021-04-10 10:16:29 +00:00
- SUPERUSER_EMAIL=<SUPERUSER_EMAIL>
2021-04-27 00:56:19 +00:00
# Password for `admin` account
2021-04-10 10:16:29 +00:00
- SUPERUSER_PASSWORD=<SUPERUSER_PASSWORD>
# The hostname you will use to access the app (i.e., netbox.example.com)
- ALLOWED_HOST=<ALLOWED_HOST>
2021-04-27 00:56:19 +00:00
# Database name (default: netbox)
2021-04-10 10:16:29 +00:00
- DB_NAME=<DB_NAME>
# Database user
- DB_USER=<DB_USER>
# Database password
- DB_PASSWORD=<DB_PASSWORD>
2021-04-27 00:56:19 +00:00
# Database host (default: postgres)
2021-04-10 10:16:29 +00:00
- DB_HOST=<DB_HOST>
2021-04-27 00:56:19 +00:00
# Database port (defaul: 5432)
2021-04-10 10:16:29 +00:00
- DB_PORT=<DB_PORT>
2021-04-27 00:56:19 +00:00
# Redis host (default: redis)
2021-04-10 10:16:29 +00:00
- REDIS_HOST=<REDIS_HOST>
2021-04-27 00:56:19 +00:00
# Redis port number (default: 6379)
2021-04-10 10:16:29 +00:00
- REDIS_PORT=<REDIS_PORT>
2021-04-27 00:56:19 +00:00
# Redis password (default: none)
2021-04-10 10:16:29 +00:00
- REDIS_PASSWORD=<REDIS_PASSWORD>
2021-04-27 00:56:19 +00:00
# Redis database ID for tasks (default: 0)
- REDIS_DB_TASK=<REDIS_DB_TASK>
# Redis database ID for caching (default: 1)
- REDIS_DB_CACHE=<REDIS_DB_CACHE>
# The path you will use to access the app (i.e., /netbox, optional, default: none)
- BASE_PATH=<BASE_PATH> # optional
# Enable remote authentication (optional, default: False)
- REMOTE_AUTH_ENABLED=<REMOTE_AUTH_ENABLED> # optional
# Python path to the custom Django authentication backend to use for external user authentication (optional, default: netbox.authentication.RemoteUserBackend)
- REMOTE_AUTH_BACKEND=<REMOTE_AUTH_BACKEND> # optional
# Name of the HTTP header which informs NetBox of the currently authenticated user. (optional, default: HTTP_REMOTE_USER)
- REMOTE_AUTH_HEADER=<REMOTE_AUTH_HEADER> # optional
# If true, NetBox will automatically create local accounts for users authenticated via a remote service (optional, default: False)
- REMOTE_AUTH_AUTO_CREATE_USER=<REMOTE_AUTH_AUTO_CREATE_USER> # optional
# The list of groups to assign a new user account when created using remote authentication (optional, default: [])
- REMOTE_AUTH_DEFAULT_GROUPS=<REMOTE_AUTH_DEFAULT_GROUPS> # optional
# A mapping of permissions to assign a new user account when created using remote authentication (optional, default: {})
- REMOTE_AUTH_DEFAULT_PERMISSIONS=<REMOTE_AUTH_DEFAULT_PERMISSIONS> # optional
2021-04-10 10:16:29 +00:00
volumes :
# config directory volume mapping
- ${BASEDIR:-/volume1/docker}/netbox/config:/config
ports :
# will map the container's port 8000 to port 8000 on the host
- 8000 : 8000
restart : unless-stopped