Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Healthcheck endpoint ? #368

Open
pascalandy opened this issue Nov 27, 2024 · 1 comment
Open

Healthcheck endpoint ? #368

pascalandy opened this issue Nov 27, 2024 · 1 comment

Comments

@pascalandy
Copy link

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
Copy link
Author

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant