crazy-max / swarm-cronjob

Create jobs on a time-based schedule on Docker Swarm
https://crazymax.dev/swarm-cronjob/
MIT License
767 stars 70 forks source link

Healthcheck endpoint ? #368

Open pascalandy opened 5 days ago

pascalandy commented 5 days ago

Description

using docker stack, I would like to do:

  scheduler:
    image: crazymax/swarm-cronjob:latest
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
    environment:
      - "TZ=America/Toronto"
      - "LOG_LEVEL=info"
      - "LOG_JSON=false"
    deploy:
      update_config:
        order: start-first
      mode: replicated
      replicas: 1
      restart_policy:
        condition: on-failure
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
      interval: 30s
      timeout: 10s
      retries: 3
pascalandy commented 5 days ago

Also, this is out of this scope, but https://github.com/containrrr/shepherd same not maintained anymore. Any sidecars that update your services based on image tags ?