Skip to main content

Installation

Requirements

  • git

  • docker

Clone the opennetaudit repository to your server

git clone https://git.rnp.br/guilherme.ladvocat/opennetaudit.git

Create the docker image

docker build . -t opennetaudit:latest

Verify the image created

docker images

Edit the file opennetaudit/volumes/netaudit/.env and set your server's IP at ALLOWED_HOSTS variable

ALLOWED_HOSTS=192.168.100.30

Start the docker-compose

docker-compose up -d

Create databases

docker exec -it netaudit python manage.py makemigrations

docker exec -it netaudit python manage.py migrate

docker exec -it netaudit python manage.py makemigrations website

docker exec -it netaudit python manage.py migrate website

docker exec -it netaudit python manage.py migrate --database device_base

Create super user

docker exec -it netaudit python manage.py createsuperuser

Username (leave blank to use 'root'): admin
Email address:
Password:
Password (again):
Superuser created successfully.