From b9e81c3c0e685890690f6792277e6f65acd111c2 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Wed, 31 Mar 2021 23:39:16 +1100 Subject: [PATCH] Start supervisord Ref: https://advancedweb.hu/supervisor-with-docker-lessons-learned/ --- deploy/inventree.conf | 1 + docker/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy/inventree.conf b/deploy/inventree.conf index 782b6ae2f6..a55c7163f6 100644 --- a/deploy/inventree.conf +++ b/deploy/inventree.conf @@ -13,6 +13,7 @@ [supervisord] ; Change this path if log files are stored elsewhere logfile=/home/inventree/log/supervisor.log +nodaemon=true [program:inventree-server] user=inventree diff --git a/docker/Dockerfile b/docker/Dockerfile index 2b5878f223..c0b088d952 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -53,4 +53,4 @@ RUN mkdir /home/inventree/media /home/inventree/static /home/inventree/log /home # Copy supervisor file COPY deploy/inventree.conf /etc/supervisor/conf.d/inventree.conf -RUN service supervisor start +CMD ["/usr/bin/supervisord"]