Externalize gunicorn-config

This moves the gunicorn_config.py into /etc/netbox so that it can be
easily mapped through a Openshift config map
This commit is contained in:
Tobias Genannt 2018-03-06 13:36:09 +01:00
parent ae9a3f04a5
commit 2a1b6e42a8
2 changed files with 3 additions and 2 deletions

View File

@ -33,7 +33,7 @@ WORKDIR /opt/netbox
RUN pip install -r requirements.txt
COPY docker/configuration.docker.py /opt/netbox/netbox/netbox/configuration.py
COPY docker/gunicorn_config.py /opt/netbox/
COPY configuration/gunicorn_config.py /etc/netbox/
COPY docker/nginx.conf /etc/netbox-nginx/nginx.conf
COPY docker/docker-entrypoint.sh docker-entrypoint.sh
COPY startup_scripts/ /opt/netbox/startup_scripts/
@ -46,6 +46,6 @@ ENTRYPOINT [ "/opt/netbox/docker-entrypoint.sh" ]
VOLUME ["/etc/netbox-nginx/"]
CMD ["gunicorn", "--log-level debug", "-c /opt/netbox/gunicorn_config.py", "netbox.wsgi"]
CMD ["gunicorn", "-c /etc/netbox/gunicorn_config.py", "netbox.wsgi"]
LABEL SRC_URL="$URL"

View File

@ -5,3 +5,4 @@ workers = 3
errorlog = '-'
accesslog = '-'
capture_output = False
loglevel = 'debug'