Start supervisord

Ref: https://advancedweb.hu/supervisor-with-docker-lessons-learned/
This commit is contained in:
Oliver Walters 2021-03-31 23:39:16 +11:00
parent b9f9b26ca5
commit b9e81c3c0e
2 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@
[supervisord] [supervisord]
; Change this path if log files are stored elsewhere ; Change this path if log files are stored elsewhere
logfile=/home/inventree/log/supervisor.log logfile=/home/inventree/log/supervisor.log
nodaemon=true
[program:inventree-server] [program:inventree-server]
user=inventree user=inventree

View File

@ -53,4 +53,4 @@ RUN mkdir /home/inventree/media /home/inventree/static /home/inventree/log /home
# Copy supervisor file # Copy supervisor file
COPY deploy/inventree.conf /etc/supervisor/conf.d/inventree.conf COPY deploy/inventree.conf /etc/supervisor/conf.d/inventree.conf
RUN service supervisor start CMD ["/usr/bin/supervisord"]