added netbox
This commit is contained in:
parent
4517d14aa1
commit
9b389ca98a
4
netbox/.gitignore
vendored
Normal file
4
netbox/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
.env
|
||||
config/
|
||||
db/
|
||||
|
12
netbox/README.md
Normal file
12
netbox/README.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
# Netbox docker container
|
||||
|
||||
NetBox is the leading solution for modeling and documenting modern networks. By combining the traditional disciplines of IP address management (IPAM) and datacenter infrastructure management (DCIM) with powerful APIs and extensions, NetBox provides the ideal "source of truth" to power network automation. Available as open source software under the Apache 2.0 license, NetBox is employed by thousands of organizations around the world.
|
||||
|
||||
### requirements:
|
||||
|
||||
- installed system with docker-compose
|
||||
- running in /services/netbox/
|
||||
- adjust env_example and rename to .env
|
||||
|
||||
Website:
|
||||
https://github.com/netbox-community/netbox
|
58
netbox/docker-compose.yaml
Normal file
58
netbox/docker-compose.yaml
Normal file
|
@ -0,0 +1,58 @@
|
|||
---
|
||||
version: "2.1"
|
||||
networks:
|
||||
netboxnet:
|
||||
services:
|
||||
#netbox
|
||||
netbox:
|
||||
image: lscr.io/linuxserver/netbox:latest
|
||||
container_name: netbox_app
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- TZ=Europe/Berlin
|
||||
- SUPERUSER_EMAIL=${SUPERUSER_EMAIL}
|
||||
- SUPERUSER_PASSWORD=${SUPERUSER_PASSWORD}
|
||||
- ALLOWED_HOST=${ALLOWED_HOST}
|
||||
- DB_NAME=${DB_NAME}
|
||||
- DB_USER=${DB_USER}
|
||||
- DB_PASSWORD=${DB_PASSWORD}
|
||||
- DB_HOST=${DB_HOST}
|
||||
- DB_PORT=${DB_PORT}
|
||||
- REDIS_HOST=${REDIS_HOST}
|
||||
- REDIS_PORT=${REDIS_PORT}
|
||||
volumes:
|
||||
- ./config:/config
|
||||
networks:
|
||||
- netboxnet
|
||||
ports:
|
||||
- ${NETBOX_PORT}:8000
|
||||
restart: unless-stopped
|
||||
# postgres
|
||||
db:
|
||||
image: postgres:latest
|
||||
container_name: netbox_db
|
||||
restart: always
|
||||
environment:
|
||||
- POSTGRES_USER=${DB_USER}
|
||||
- POSTGRES_PASSWORD=${DB_PASSWORD}
|
||||
- POSTGRES_DB=${DB_NAME}
|
||||
networks:
|
||||
- netboxnet
|
||||
ports:
|
||||
- ${DB_PORT}:5432
|
||||
volumes:
|
||||
- ./db:/var/lib/postgresql/data
|
||||
# redis
|
||||
redis:
|
||||
image: 'bitnami/redis:latest'
|
||||
container_name: netbox_redis
|
||||
environment:
|
||||
- ALLOW_EMPTY_PASSWORD=yes
|
||||
networks:
|
||||
- netboxnet
|
||||
ports:
|
||||
- ${REDIS_PORT}:6379
|
11
netbox/env_example
Normal file
11
netbox/env_example
Normal file
|
@ -0,0 +1,11 @@
|
|||
SUPERUSER_EMAIL=
|
||||
SUPERUSER_PASSWORD=
|
||||
ALLOWED_HOST=
|
||||
DB_NAME=
|
||||
DB_USER=
|
||||
DB_PASSWORD=
|
||||
DB_HOST=
|
||||
DB_PORT=
|
||||
REDIS_HOST=
|
||||
REDIS_PORT=
|
||||
NETBOX_PORT=
|
Loading…
Reference in a new issue