diff --git a/Dockerfile b/Dockerfile index 289d7bb..4ea4872 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,7 +33,7 @@ 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 @@ 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" diff --git a/configuration/gunicorn_config.py b/configuration/gunicorn_config.py new file mode 100644 index 0000000..063d822 --- /dev/null +++ b/configuration/gunicorn_config.py @@ -0,0 +1,8 @@ +command = '/usr/bin/gunicorn' +pythonpath = '/opt/netbox/netbox' +bind = '0.0.0.0:8001' +workers = 3 +errorlog = '-' +accesslog = '-' +capture_output = False +loglevel = 'debug' diff --git a/docker/gunicorn_config.py b/docker/gunicorn_config.py deleted file mode 100644 index 059e394..0000000 --- a/docker/gunicorn_config.py +++ /dev/null @@ -1,7 +0,0 @@ -command = '/usr/bin/gunicorn' -pythonpath = '/opt/netbox/netbox' -bind = '0.0.0.0:8001' -workers = 3 -errorlog = '-' -accesslog = '-' -capture_output = False