diff --git a/templates/crafty-controller/.felhom.yml b/templates/crafty-controller/.felhom.yml index 0979736..45560f5 100644 --- a/templates/crafty-controller/.felhom.yml +++ b/templates/crafty-controller/.felhom.yml @@ -58,5 +58,5 @@ app_info: # --- Controller-side health probe --- healthcheck: checks: - - type: http + - type: tcp port: 8443 diff --git a/templates/crafty-controller/docker-compose.yml b/templates/crafty-controller/docker-compose.yml index 6208420..fb92d12 100644 --- a/templates/crafty-controller/docker-compose.yml +++ b/templates/crafty-controller/docker-compose.yml @@ -26,11 +26,11 @@ services: limits: memory: 2048M healthcheck: - test: ["CMD", "curl", "-fk", "https://localhost:8443"] + test: ["CMD", "/usr/bin/python3", "-c", "import socket,ssl; ssl._create_unverified_context().wrap_socket(socket.create_connection(('127.0.0.1',8443),timeout=3)).close()"] interval: 30s timeout: 5s retries: 3 - start_period: 30s + start_period: 60s labels: - "traefik.enable=true" - "traefik.http.routers.crafty-controller.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)"