35 lines
1.2 KiB
YAML
35 lines
1.2 KiB
YAML
---
|
|
version: "2.1"
|
|
services:
|
|
netbox:
|
|
image: lscr.io/linuxserver/netbox:latest
|
|
container_name: netbox
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
- TZ=<TZ>
|
|
- SUPERUSER_EMAIL=<SUPERUSER_EMAIL>
|
|
- SUPERUSER_PASSWORD=<SUPERUSER_PASSWORD>
|
|
- ALLOWED_HOST=<ALLOWED_HOST>
|
|
- DB_NAME=<DB_NAME>
|
|
- DB_USER=<DB_USER>
|
|
- DB_PASSWORD=<DB_PASSWORD>
|
|
- DB_HOST=<DB_HOST>
|
|
- DB_PORT=<DB_PORT>
|
|
- REDIS_HOST=<REDIS_HOST>
|
|
- REDIS_PORT=<REDIS_PORT>
|
|
- REDIS_PASSWORD=<REDIS_PASSWORD>
|
|
- REDIS_DB_TASK=<REDIS_DB_TASK>
|
|
- REDIS_DB_CACHE=<REDIS_DB_CACHE>
|
|
- BASE_PATH=<BASE_PATH> #optional
|
|
- REMOTE_AUTH_ENABLED=<REMOTE_AUTH_ENABLED> #optional
|
|
- REMOTE_AUTH_BACKEND=<REMOTE_AUTH_BACKEND> #optional
|
|
- REMOTE_AUTH_HEADER=<REMOTE_AUTH_HEADER> #optional
|
|
- REMOTE_AUTH_AUTO_CREATE_USER=<REMOTE_AUTH_AUTO_CREATE_USER> #optional
|
|
- REMOTE_AUTH_DEFAULT_GROUPS=<REMOTE_AUTH_DEFAULT_GROUPS> #optional
|
|
- REMOTE_AUTH_DEFAULT_PERMISSIONS=<REMOTE_AUTH_DEFAULT_PERMISSIONS> #optional
|
|
volumes:
|
|
- <path to data on host>:/config
|
|
ports:
|
|
- 8000:8000
|
|
restart: unless-stopped |