導入
$ 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