Sign inSign up

11notes/netbox

By 11notes

โ€ขUpdated about 5 hours ago

run netbox rootless

Image
Buildkit cache
0

3.5K

11notes/netbox repository overview

banner

โ NETBOX

![size](https://img.shields.io/badge/image_size-${{โ  image_size }}-green?color=%2338ad2d)5pxpulls5px5pxswiss_made

run netbox rootless

โ SYNOPSIS ๐Ÿ“–

What can I do with this? This image will give you a rootlessโ  Netbox installation.

โ UNIQUE VALUE PROPOSITION ๐Ÿ’ถ

Why should I run this image and not the other image(s) that already exist? Good question! Because ...

  • ... this image runs rootlessโ  as 1000:1000
  • ... this image is auto updated to the latest version via CI/CD
  • ... this image is built and compiled from source
  • ... this image has a health check
  • ... this image runs read-only
  • ... this image is automatically scanned for CVEs before and after publishing
  • ... this image is created via a secure and pinned CI/CD process

If you value security, simplicity and the ability to interact with the maintainer and developer of an image. Using my images is a great start in that direction.

โ COMPARISON ๐Ÿ

Below you find a comparison between this image and the most used or original one.

imagesize on diskinit default asdistrolessโ supported architectures
netboxcommunity/netbox1GB0:0โŒamd64, arm64

โ VOLUMES ๐Ÿ“

  • /netbox/etc - Directory of the config.py
  • /netbox/var - Directory of reports, uploads and scripts

โ COMPOSE โœ‚๏ธ

name: "netbox"

x-lockdown: &lockdown
  # prevents write access to the image itself
  read_only: true
  # prevents any process within the container to gain more privileges
  security_opt:
    - "no-new-privileges=true"

services:
  postgres:
    image: "11notes/postgres:18"
    <<: *lockdown
    environment:
      TZ: "Europe/Zurich"
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
    ports:
      - "5432:5432/tcp"
    networks:
      frontend:
    volumes:
      - "postgres.etc:/postgres/etc"
      - "postgres.var:/postgres/var"
    tmpfs:
      - "/postgres/run:uid=1000,gid=1000"
      - "/postgres/log:uid=1000,gid=1000"
    restart: "always"

  redis:
    image: "11notes/redis:8"
    <<: *lockdown
    environment:
      REDIS_PASSWORD: "${REDIS_PASSWORD}"
      TZ: "Europe/Zurich"
    networks:
      backend:
    volumes:
      - "redis.etc:/redis/etc"
      - "redis.var:/redis/var"
    tmpfs:
      - "/run:uid=1000,gid=1000"
    restart: "always"

  netbox:
    depends_on:
      postgres:
        condition: "service_healthy"
        restart: true
      redis:
        condition: "service_healthy"
        restart: true
    image: "11notes/netbox:4.7.4"
    <<: *lockdown
    environment:
      TZ: "Europe/Zurich"
      DB_PASSWORD: "${POSTGRES_PASSWORD}"
      REDIS_PASSWORD: "${REDIS_PASSWORD}"
      SECRET_KEY: "${SECRET_KEY}"
      API_TOKEN_PEPPER_1: "${API_TOKEN_PEPPER}"
      NETBOX_ADMIN: "admin"
      NETBOX_ADMIN_PASSWORD: ${NETBOX_ADMIN_PASSWORD}
    volumes:
      - "etc:/netbox/etc"
      - "var:/netbox/var"
    tmpfs:
      - "/run:uid=1000,gid=1000"
    ports:
      - "3000:8080/tcp"
    networks:
      frontend:
      backend:
    restart: "always"

volumes:
  etc:
  var:
  postgres.etc:
  postgres.var:
  redis.etc:
  redis.var:

networks:
  frontend:
  backend:
    internal: true

To find out how you can change the default UID/GID of this container image, consult the RTFMโ .

โ DEFAULT SETTINGS ๐Ÿ—ƒ๏ธ

ParameterValueDescription
userdockeruser name
uid1000user identifierโ 
gid1000group identifierโ 
home/netboxhome directory of user docker

โ ENVIRONMENT ๐Ÿ“

ParameterValueDefault
TZTime Zoneโ 
DEBUGWill activate debug option for container image and app (if available)

โ MAIN TAGS ๐Ÿท๏ธ

These are the main tags for the image. There is also a tag for each commit and its shorthand sha256 value.

โ There is no latest tag, what am I supposed to do about updates?

It is my opinion that the :latest tag is a bad habbit and should not be used at all. Many developers introduce breaking changes in new releases. This would messed up everything for people who use :latest. If you donโ€™t want to change the tag to the latest semverโ , simply use the short versions of semverโ . Instead of using :4.7.4 you can use :4 or :4.7. Since on each new version these tags are updated to the latest version of the software, using them is identical to using :latest but at least fixed to a major or minor version. Which in theory should not introduce breaking changes.

If you still insist on having the bleeding edge release of this app, simply use the :rolling tag, but be warned! You will get the latest version of the app instantly, regardless of breaking changes or security issues or what so ever. You do this at your own risk!

โ REGISTRIES โ˜๏ธ

docker pull 11notes/netbox:4.7.4
docker pull ghcr.io/11notes/netbox:4.7.4
docker pull quay.io/11notes/netbox:4.7.4

โ SOURCE ๐Ÿ’พ

โ PARENT IMAGE ๐Ÿ›๏ธ

โ BUILT WITH ๐Ÿงฐ

โ GENERAL TIPS ๐Ÿ“Œ

  • Use a reverse proxy like Traefik, Nginx, HAproxy to terminate TLS and to protect your endpoints
  • Use Letโ€™s Encrypt DNS-01 challenge to obtain valid SSL certificates for your services

โ ElevenNotesโ„ข๏ธ

This image is provided to you at your own risk. Always make backups before updating an image to a different version. Check the releasesโ  for breaking changes. If you have any problems with using this image simply raise an issueโ , thanks. If you have a question or inputs please create a new discussionโ  instead of an issue. You can find all my other repositories on githubโ .

created 05.11.2026, 13:54:24 (CET)

Tag summary

Content type

Buildkit_cache

Digest

sha256:20bbe0cc6โ€ฆ

Size

1.5 GB

Last updated

11 months ago

docker pull 11notes/netbox:buildcache