mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2026-03-18 22:36:57 +00:00
Compare commits
5 commits
9a37cff689
...
f1e674004e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f1e674004e | ||
|
|
1d8a31be83 | ||
|
|
109ef8afd2 | ||
|
|
c8d766a95b | ||
|
|
477decd80a |
|
|
@ -39,12 +39,9 @@ There is a more complete [_Getting Started_ guide on our wiki][wiki-getting-star
|
||||||
```bash
|
```bash
|
||||||
git clone -b release https://github.com/netbox-community/netbox-docker.git
|
git clone -b release https://github.com/netbox-community/netbox-docker.git
|
||||||
cd netbox-docker
|
cd netbox-docker
|
||||||
tee docker-compose.override.yml <<EOF
|
# Copy the example override file
|
||||||
services:
|
cp docker-compose.override.yml.example docker-compose.override.yml
|
||||||
netbox:
|
# Read and edit the file to your liking
|
||||||
ports:
|
|
||||||
- 8000:8080
|
|
||||||
EOF
|
|
||||||
docker compose pull
|
docker compose pull
|
||||||
docker compose up
|
docker compose up
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,8 @@ if '*' not in ALLOWED_HOSTS and 'localhost' not in ALLOWED_HOSTS:
|
||||||
|
|
||||||
# PostgreSQL database configuration. See the Django documentation for a complete list of available parameters:
|
# PostgreSQL database configuration. See the Django documentation for a complete list of available parameters:
|
||||||
# https://docs.djangoproject.com/en/stable/ref/settings/#databases
|
# https://docs.djangoproject.com/en/stable/ref/settings/#databases
|
||||||
DATABASE = {
|
DATABASES = {
|
||||||
|
'default': {
|
||||||
'NAME': environ.get('DB_NAME', 'netbox'), # Database name
|
'NAME': environ.get('DB_NAME', 'netbox'), # Database name
|
||||||
'USER': environ.get('DB_USER', ''), # PostgreSQL username
|
'USER': environ.get('DB_USER', ''), # PostgreSQL username
|
||||||
'PASSWORD': _read_secret('db_password', environ.get('DB_PASSWORD', '')),
|
'PASSWORD': _read_secret('db_password', environ.get('DB_PASSWORD', '')),
|
||||||
|
|
@ -78,6 +79,7 @@ DATABASE = {
|
||||||
'DISABLE_SERVER_SIDE_CURSORS': _environ_get_and_map('DB_DISABLE_SERVER_SIDE_CURSORS', 'False', _AS_BOOL),
|
'DISABLE_SERVER_SIDE_CURSORS': _environ_get_and_map('DB_DISABLE_SERVER_SIDE_CURSORS', 'False', _AS_BOOL),
|
||||||
# Disable the use of server-side cursors transaction pooling
|
# Disable the use of server-side cursors transaction pooling
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Redis database settings. Redis is used for caching and for queuing background tasks such as webhook events. A separate
|
# Redis database settings. Redis is used for caching and for queuing background tasks such as webhook events. A separate
|
||||||
# configuration exists for each. Full connection details are required in both sections, and it is strongly recommended
|
# configuration exists for each. Full connection details are required in both sections, and it is strongly recommended
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue