NetBox: How to run it on your Synology - Maurice Kevenaar's Techblog
Before we dive into the installation process, there are a few prerequisites you need to have in place:
Click on the Add Stack button.
Give your stack a name and enter the following code into the Web editor box:
version: '3'
services:
netbox:
image: netboxcommunity/netbox
restart: always
ports:
- "8000:8080"
volumes:
- /mnt/user/appdata/netbox:/opt/netbox/netbox/media
environment:
- DB_HOST=netboxdb
- DB_NAME=netbox
- DB_USER=netbox
- DB_PASSWORD=yourpassword
depends_on:
- netboxdb
networks:
- default
netboxdb:
image: postgres:13-alpine
restart: always
volumes:
- /mnt/user/appdata/netbox:/var/lib/postgresql/data
environment:
- POSTGRES_USER=netbox
- POSTGRES_PASSWORD=yourpassword
- POSTGRES_DB=netbox
networks:
- default
networks:
default: