LoginSignup
2
2

NetBoxをdockerでサクッと構築する

Posted at

導入

$ git clone -b release https://github.com/netbox-community/netbox-docker.git

とりあえず起動

$ cd netbox-docker
docker-compose up

ステータス確認

root@shoma:/home/shoma/netbox-docker# docker-compose ps
           Name                          Command                   State         Ports
----------------------------------------------------------------------------------------
netbox-docker_netbox_1        /usr/bin/tini -- /opt/netb ...   Up (unhealthy)
netbox-docker_postgres_1      docker-entrypoint.sh postgres    Up               5432/tcp
netbox-docker_redis-cache_1   docker-entrypoint.sh sh -c ...   Up               6379/tcp
netbox-docker_redis_1         docker-entrypoint.sh sh -c ...   Up               6379/tcp

ポート開放されてないやん。

NETBOXをポート開放する

version: '3.4'
services:
  netbox: &netbox
    ports:
      - 28080:8080
    image: docker.io/netboxcommunity/netbox:${VERSION-v3.5-2.6.1}
    depends_on:
    - postgres
    - redis
    - redis-cache
    env_file: env/netbox.env

アクセス

おお、すごいねえ。
image.png

2
2
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2