mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2024-11-07 08:34:00 +01:00
Fixes logging config that prevented gunicon launch
This commit is contained in:
parent
fe82d10aeb
commit
1072d243a3
@ -21,7 +21,7 @@ WORKDIR /opt
|
||||
ARG BRANCH=v2.0-beta3
|
||||
ARG URL=https://github.com/digitalocean/netbox/archive/$BRANCH.tar.gz
|
||||
RUN wget -q -O - "${URL}" | tar xz \
|
||||
&& ln -s netbox* netbox
|
||||
&& mv netbox* netbox
|
||||
|
||||
WORKDIR /opt/netbox
|
||||
RUN pip install -r requirements.txt
|
||||
|
@ -5,7 +5,7 @@ services:
|
||||
context: .
|
||||
args:
|
||||
- BRANCH=${BRANCH-master}
|
||||
image: digitalocean/netbox:${BRANCH-master}
|
||||
image: ninech/netbox:${BRANCH-master}
|
||||
depends_on:
|
||||
- postgres
|
||||
env_file: netbox.env
|
||||
|
@ -24,4 +24,4 @@ END
|
||||
/opt/netbox/netbox/manage.py collectstatic --no-input
|
||||
|
||||
# start unicorn
|
||||
gunicorn --log-level debug --debug --error-logfile /dev/stderr --log-file /dev/stdout -c /opt/netbox/gunicorn_config.py netbox.wsgi
|
||||
gunicorn --log-level debug --debug -c /opt/netbox/gunicorn_config.py netbox.wsgi
|
||||
|
@ -3,3 +3,6 @@ pythonpath = '/opt/netbox/netbox'
|
||||
bind = '0.0.0.0:8001'
|
||||
workers = 3
|
||||
user = 'root'
|
||||
errorlog = '-'
|
||||
accesslog = '-'
|
||||
capture_output = False
|
||||
|
Loading…
Reference in New Issue
Block a user