services: headscale: container_name: headscale image: headscale/headscale:stable restart: unless-stopped volumes: - ./config:/etc/headscale - ./data:/var/lib/headscale entrypoint: headscale serve networks: nw-caddy: depends_on: caddy: condition: service_healthy healthcheck: test: ["CMD", "headscale", "health"] interval: 5m timeout: 10s retries: 3 start_period: 10s