Gezondheidscheck voor Beszel Software deployed (geintegreerd) op Docker Engine.
https://beszel.dev/guide/healthchecks

Hub example

The hub healthcheck tests if the /api/health endpoint returns a 200 status code.

services:
  beszel-hub:
    healthcheck:
      # The URL is relative to the container, not the host
      test: ['CMD', '/beszel', 'health', '--url', 'http://localhost:8090']
      start_period: 5s # Check 5 seconds after the container starts
      interval: 120s # Then check every 120 seconds after that

Agent example

The agent healthcheck verifies the agent is running properly, not necessarily that it’s connected to the hub.

services:
  beszel-agent:
    healthcheck:
      test: ['CMD', '/agent', 'health']
      interval: 120s

Meer info over
Docker Container Health Check

Peter-Paul Rijsdijk

Eigenaar Webstijlen WordPress en Webhosting expertVragen?Email: peterpaul@webstijlen.nl