fix(crond): Correction du conteneur Docker pour prendre en compte le cron

This commit is contained in:
Olivier DOSSMANN 2022-10-12 21:03:56 +02:00
parent 28cadc2cf4
commit 4995e03c21
3 changed files with 5 additions and 2 deletions

View File

@ -20,6 +20,9 @@ ENV TZ=Europe/Paris
COPY . /opt/rawdog
COPY ./crontabs /etc/crontabs/root
RUN chown root:root /etc/crontabs/root && \
chmod 600 /etc/crontabs/root
WORKDIR /opt/rawdog
VOLUME /opt/rawdog/public

View File

@ -1 +1 @@
0 4 * * * /opt/rawdog/startup
0 4 * * * /bin/sh /opt/rawdog/startup

View File

@ -9,7 +9,7 @@ services:
image: rawdog:0.1
restart: always
entrypoint: /usr/sbin/crond
command: ["-f", "-l", "2", "-L", "/dev/stdout"]
command: ["-f", "-l", "8", "-L", "/dev/stdout"]
volumes:
- ${PWD}/public:/opt/rawdog/public:rw
environment: