Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
c790ce5953 | |||
cf7aef31e2 | |||
feb810ab27 | |||
3f2fe54bfd | |||
773ec630b4 | |||
8d71d2f973 | |||
f9662a1e4b |
@ -16,9 +16,9 @@ RUN apk add --no-cache \
|
|||||||
|
|
||||||
WORKDIR /install
|
WORKDIR /install
|
||||||
|
|
||||||
RUN pip install --prefix="/install" --install-option="--prefix=/install" \
|
RUN pip install --prefix="/install" --no-warn-script-location \
|
||||||
# gunicorn is used for launching netbox
|
# gunicorn is used for launching netbox
|
||||||
gunicorn \
|
'gunicorn<20.0.0' \
|
||||||
greenlet \
|
greenlet \
|
||||||
eventlet \
|
eventlet \
|
||||||
# napalm is used for gathering information from network devices
|
# napalm is used for gathering information from network devices
|
||||||
@ -30,7 +30,7 @@ RUN pip install --prefix="/install" --install-option="--prefix=/install" \
|
|||||||
|
|
||||||
ARG NETBOX_PATH
|
ARG NETBOX_PATH
|
||||||
COPY ${NETBOX_PATH}/requirements.txt /
|
COPY ${NETBOX_PATH}/requirements.txt /
|
||||||
RUN pip install --prefix="/install" --install-option="--prefix=/install" -r /requirements.txt
|
RUN pip install --prefix="/install" --no-warn-script-location -r /requirements.txt
|
||||||
|
|
||||||
###
|
###
|
||||||
# Main stage
|
# Main stage
|
||||||
|
@ -37,6 +37,8 @@ DATABASE = {
|
|||||||
# PostgreSQL password
|
# PostgreSQL password
|
||||||
'HOST': os.environ.get('DB_HOST', 'localhost'), # Database server
|
'HOST': os.environ.get('DB_HOST', 'localhost'), # Database server
|
||||||
'PORT': os.environ.get('DB_PORT', ''), # Database port (leave blank for default)
|
'PORT': os.environ.get('DB_PORT', ''), # Database port (leave blank for default)
|
||||||
|
'CONN_MAX_AGE': int(os.environ.get('DB_CONN_MAX_AGE', '300')),
|
||||||
|
# Database connection persistence
|
||||||
}
|
}
|
||||||
|
|
||||||
# This key is used for secure generation of random numbers and strings. It must never be exposed outside of this file.
|
# This key is used for secure generation of random numbers and strings. It must never be exposed outside of this file.
|
||||||
|
Reference in New Issue
Block a user