NetBox Documentation

NetBox: How to run it on your Synology - Maurice Kevenaar's Techblog

Prerequisites

Before we dive into the installation process, there are a few prerequisites you need to have in place:

Installing NetBox with Portainer

  1. Open your Portainer dashboard and navigate to “Stacks” in the left-hand menu.

Untitled

  1. Click on the Add Stack button.

    Untitled

  2. 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:

Untitled