Compare commits
4 Commits
a4843430d8
...
962d5410b1
| Author | SHA1 | Date | |
|---|---|---|---|
|
962d5410b1
|
|||
|
e0aa1a1ce7
|
|||
|
3bd725f6d2
|
|||
|
79840d6c13
|
@@ -20,7 +20,7 @@ RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen \
|
|||||||
RUN apt install python3-pip -y
|
RUN apt install python3-pip -y
|
||||||
|
|
||||||
# clone repo
|
# clone repo
|
||||||
RUN git clone https://github.com/netbox-community/netbox.git /opt/netbox
|
RUN git clone -b master --depth 1 https://github.com/netbox-community/netbox.git /opt/netbox
|
||||||
|
|
||||||
# change working dir to repo
|
# change working dir to repo
|
||||||
WORKDIR /opt/netbox
|
WORKDIR /opt/netbox
|
||||||
|
|||||||
@@ -33,7 +33,12 @@ services:
|
|||||||
image: redis:6.0-alpine
|
image: redis:6.0-alpine
|
||||||
restart: always
|
restart: always
|
||||||
```
|
```
|
||||||
- Use the sample `configuration.py` in this repo and edit it accordingly.
|
- Create `devicetype-images` and `image-attachments` folders under media folder
|
||||||
|
```bash
|
||||||
|
mkdir -p media/image-attachments media/devicetype-images
|
||||||
|
```
|
||||||
|
- Generate Secret key `docker compose run --rm netbox ./generate_secret_key.py`, this will be needed in next step
|
||||||
|
- Fetch example config from container `docker compose run --rm netbox cat /opt/netbox/netbox/netbox/configuration_example.py > configuration.py` and edit it according to your enviroment.
|
||||||
- Run `docker compose up -d`
|
- Run `docker compose up -d`
|
||||||
|
|
||||||
## PLEASE, FOR THE LOVE OF GOD PLEASE DO NOT USE PASSWORD I GAVE IN THIS REPO IN PRODUCTION !!
|
## PLEASE, FOR THE LOVE OF GOD PLEASE DO NOT USE PASSWORD I GAVE IN THIS REPO IN PRODUCTION !!
|
||||||
|
|||||||
@@ -1,46 +0,0 @@
|
|||||||
###################################################################
|
|
||||||
# This file serves as a base configuration for testing purposes #
|
|
||||||
# only. It is not intended for production use. #
|
|
||||||
###################################################################
|
|
||||||
|
|
||||||
ALLOWED_HOSTS = ['*']
|
|
||||||
|
|
||||||
DATABASE = {
|
|
||||||
'NAME': 'netbox',
|
|
||||||
'USER': 'netbox',
|
|
||||||
'PASSWORD': 'even-confider-closable',
|
|
||||||
'HOST': 'postgres',
|
|
||||||
'PORT': '',
|
|
||||||
'CONN_MAX_AGE': 300,
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
#PLUGINS = [
|
|
||||||
# 'extras.tests.dummy_plugin',
|
|
||||||
#]
|
|
||||||
|
|
||||||
REDIS = {
|
|
||||||
'tasks': {
|
|
||||||
'HOST': 'redis',
|
|
||||||
'PORT': 6379,
|
|
||||||
'USERNAME': '',
|
|
||||||
'PASSWORD': '',
|
|
||||||
'DATABASE': 0,
|
|
||||||
'SSL': False,
|
|
||||||
},
|
|
||||||
'caching': {
|
|
||||||
'HOST': 'redis',
|
|
||||||
'PORT': 6379,
|
|
||||||
'USERNAME': '',
|
|
||||||
'PASSWORD': '',
|
|
||||||
'DATABASE': 1,
|
|
||||||
'SSL': False,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
SECRET_KEY = 'd3B6rBhhBJ9gQyeYFuvjRsWeP9p6jHqZGYQF'
|
|
||||||
|
|
||||||
LOGGING = {
|
|
||||||
'version': 1,
|
|
||||||
'disable_existing_loggers': True
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user