mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2025-02-23 13:40:56 +01:00
🐳 Adds the possibility to overwrite the CMD
This commit is contained in:
parent
ab0c255040
commit
d58930ab67
@ -37,3 +37,5 @@ COPY docker/docker-entrypoint.sh /docker-entrypoint.sh
|
|||||||
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
||||||
|
|
||||||
VOLUME ["/etc/netbox-nginx/"]
|
VOLUME ["/etc/netbox-nginx/"]
|
||||||
|
|
||||||
|
CMD ["gunicorn", "--log-level debug", "-c /opt/netbox/gunicorn_config.py", "netbox.wsgi"]
|
||||||
|
@ -23,5 +23,8 @@ END
|
|||||||
# copy static files
|
# copy static files
|
||||||
./manage.py collectstatic --no-input
|
./manage.py collectstatic --no-input
|
||||||
|
|
||||||
# start unicorn
|
echo "✅ Initialisation is done. Launching CMD:"
|
||||||
gunicorn --log-level debug --debug -c /opt/netbox/gunicorn_config.py netbox.wsgi
|
echo "exec ${@}"
|
||||||
|
|
||||||
|
# launch whatever is passed by docker via RUN
|
||||||
|
exec ${@}
|
||||||
|
Loading…
Reference in New Issue
Block a user