fix celerybeat-schedule: permission denied (#216)

* fix celerybeat-schedule: permission denied

* fix dockerbuild file
This commit is contained in:
Xila Cai
2024-09-17 00:08:19 +02:00
committed by GitHub
parent 685cc1a206
commit 3f252b6b98
2 changed files with 6 additions and 6 deletions

View File

@@ -20,9 +20,9 @@ WORKDIR /yamtrack
COPY ./entrypoint.sh /entrypoint.sh
COPY ./supervisord.conf /etc/supervisord.conf
RUN chmod +x /entrypoint.sh && \
RUN chmod +x /entrypoint.sh \
# create user abc for later PUID/PGID mapping
useradd -U -M -s /bin/bash abc
&& useradd -U -M -s /bin/bash abc
# Django app
COPY src ./

View File

@@ -12,7 +12,7 @@ stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:celery]
command=celery --app config worker --beat --loglevel INFO --without-mingle --without-gossip
command=celery --app config worker --loglevel INFO --without-mingle --without-gossip
user=abc
stopasgroup=true
stopwaitsecs=60
@@ -23,10 +23,10 @@ stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:celery-beat]
command = celery --app config beat -s ./db/celerybeat-schedule --loglevel INFO
command=celery --app config beat -s ./db/celerybeat-schedule --loglevel INFO
user=abc
stopasgroup = true
priority = 10
stopasgroup=true
priority=10
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr