diff --git a/docker-compose.yml b/docker-compose.yml index 78c095f..e4cf07b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -21,7 +21,7 @@ services: reskreen-backend-cron: image: gitea.prod.resk-u.ch/clerc/reskreen:latest - command: crond -f + command: start_crond.sh volumes: - reskreen-data:/app/config labels: diff --git a/start_crond.sh b/start_crond.sh new file mode 100644 index 0000000..3b45b69 --- /dev/null +++ b/start_crond.sh @@ -0,0 +1,8 @@ +#!/bin/sh +# start_crond.sh + +# Activer le venv +source venv/bin/activate + +# Lancer crond +exec crond -f