netbox Installation under 5 Minutes using Docker on Ubuntu 20.04
https://netbox.readthedocs.io/en/stable/
https://github.com/netbox-community/netbox-docker
Install Docker Engine:
# sudo -i
# sudo apt update
# sudo apt install apt-transport-https ca-certificates curl software-properties-common
# curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add –
# sudo add-apt-repository “deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable”
# sudo apt update
# apt-cache policy docker-ce
# sudo apt install docker-ce
# sudo systemctl status docker
Install Docker Compose:
# sudo curl -L “https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)” -o /usr/local/bin/docker-compose
# sudo chmod +x /usr/local/bin/docker-compose
# docker-compose –version
# sudo apt install git
Allow root Login
# nano /etc/ssh/sshd_config
PermitRootLogin yes
# service ssh restart
ctrl s ,ctrl x
# git clone -b release https://github.com/netbox-community/netbox-docker.git
# cd netbox-docker
(paste below and enter)
tee docker-compose.override.yml EOF (MAKE SURE TO PUT 2 ANGLED BRACKETS BEFORE EOF AS YOUTUBE DIDNT ALLOW THOSE)
version: ‘3.4’
services:
netbox:
ports:
– 8001:8080
EOF
# root@netbox:-/netbox-docker#
# sudo docker-compose pull
# sudo docker-compose up
Username: admin
Password: admin
http://0.0.0.0:8001/
ubuntu download