From 8b86bb6213c2b4290cc1f6d1756c9f833316b3fc Mon Sep 17 00:00:00 2001 From: dn Date: Mon, 10 Feb 2025 22:17:44 +0100 Subject: [PATCH] update with new images --- .../Dockers/Shepherd/shepherd-compose.yaml | 39 +++++++++++++------ 1 file changed, 28 insertions(+), 11 deletions(-) diff --git a/DockerStack/Dockers/Shepherd/shepherd-compose.yaml b/DockerStack/Dockers/Shepherd/shepherd-compose.yaml index 5b23023..a56a9ba 100644 --- a/DockerStack/Dockers/Shepherd/shepherd-compose.yaml +++ b/DockerStack/Dockers/Shepherd/shepherd-compose.yaml @@ -1,18 +1,35 @@ version: "3" services: - shepherd: - build: . - image: mazzolino/shepherd + app: + image: containrrr/shepherd environment: - - SLEEP_TIME=60m - - IGNORELIST_SERVICES="shepherd_shepherd wordpress_db wordpress_wordpress" - - ROLLBACK_ON_FAILURE=true - - TZ=Europe/Copenhagen - - IMAGE_AUTOCLEAN_LIMIT=2 -# - APPRISE_SIDECAR_URL=apprise-microservice:5000 + TZ: 'Europe/Copenhagen' + FILTER_SERVICES: '' + IGNORELIST_SERVICES: '' + RUN_ONCE_AND_EXIT: "true" volumes: - - /var/run/docker.sock:/var/run/docker.sock + - /var/run/docker.sock:/var/run/docker.sock:ro + deploy: + replicas: 0 + restart_policy: + condition: none + labels: + - swarm.cronjob.enable=true + - swarm.cronjob.schedule=0 1 * * * + - swarm.cronjob.skip-running=true + placement: + constraints: + - node.role == manager + + scheduler: + image: crazymax/swarm-cronjob:latest + volumes: + - /var/run/docker.sock:/var/run/docker.sock:ro + environment: + - "TZ=Europe/Copenhagen" + - "LOG_LEVEL=info" + - "LOG_JSON=false" deploy: placement: constraints: - - node.role == manager \ No newline at end of file + - node.role == manager \ No newline at end of file