Back to Apps
Netbox

Deploy Netbox on Your Own Server

IP address management (IPAM) and data center infrastructure management (DCIM) tool

🛠️ Developer Tools

Want to deploy Netbox on your server faster? Try Senate with one-command setup, automatic HTTPS and monitoring.

Get Started

What is Netbox?

IP address and datacenter infrastructure management. --- Find out more at https://netbox.dev. This app's container image was built using https://docs.linuxserver.io/images/docker-netbox.

Self-Host Netbox

Follow these steps to deploy on your own server.

1

Install Docker

Skip this step if Docker is already installed on your server.

curl -fsSL https://get.docker.com | sh
2

Configure

Customize the settings below. Defaults work for most cases.

General
3

Deploy

Copy the configuration and run it on your server.

services:
  netbox:
    image: lscr.io/linuxserver/netbox:3.1.6
    environment:
      ALLOWED_HOST: netbox.your-domain.com
      DB_HOST: netbox-db
      DB_NAME: netbox-pgsql
      DB_PASSWORD: 6383ad0a37dd
      DB_PORT: "5432"
      DB_USER: postgres
      REDIS_DB_CACHE: "1"
      REDIS_DB_TASK: "0"
      REDIS_HOST: netbox-redis
      REDIS_PASSWORD: e2d94a34bfed
      REDIS_PORT: "6379"
      SUPERUSER_EMAIL: user@example.tld
      SUPERUSER_PASSWORD: e9ec5ca8fc5f
      TZ: America/New_York
    volumes:
      - netbox-data:/config
      - netbox-scripts:/app/netbox/scripts
      - netbox-reports:/app/netbox/netbox/reports
    depends_on:
      - netbox-db
      - netbox-redis
  netbox-db:
    image: postgres:12.2
    environment:
      PGDATA: /var/lib/postgresql/data
      POSTGRES_DB: netbox-pgsql
      POSTGRES_PASSWORD: 6383ad0a37dd
      POSTGRES_USER: postgres
    volumes:
      - netbox-db-data:/var/lib/postgresql/data
  netbox-redis:
    environment:
      REDIS_PASSWORD: e2d94a34bfed
    volumes:
      - netbox-redis-data:/data
volumes:
  netbox-data: {}
  netbox-scripts: {}
  netbox-reports: {}
  netbox-db-data: {}
  netbox-redis-data: {}

Then run:

docker compose up -d
4

Access

Once started, access your app at http://localhost:8000

Why Self-Host Netbox?

Full Data Ownership

Your data stays on your servers. No third-party access.

No Monthly Fees

Pay only for your server. No per-seat or usage charges.

Complete Control

Customize, backup, and scale on your own terms.

Privacy & Compliance

Meet GDPR, HIPAA, or internal security requirements.

Technical Details

Docker Image

lscr.io/linuxserver/netbox:${netbox_version}

Want to go faster?

Try Senate! Senate handles Docker, HTTPS, updates, and monitoring for you. Deploy any of our 300+ apps with a single command.

Install on any Linux server:

sh -c "$(curl -sSL https://get.senate.sh)"