diff --git a/docker/Dockerfile b/docker/Dockerfile index 9633b1c..e835146 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -65,7 +65,7 @@ WORKDIR /app/soosef EXPOSE 35811 -HEALTHCHECK --interval=30s --timeout=10s --start-period=15s --retries=3 \ - CMD curl -fsk https://localhost:35811/ || curl -fs http://localhost:35811/ || exit 1 +HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3 \ + CMD curl -fs --max-time 3 http://localhost:35811/ || curl -fsk --max-time 3 https://localhost:35811/ || exit 1 ENTRYPOINT ["/app/entrypoint.sh"] diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 7ac2085..bab486a 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -15,6 +15,12 @@ services: volumes: - soosef-data:/root/.soosef restart: unless-stopped + healthcheck: + test: ["CMD", "curl", "-fs", "--max-time", "3", "http://localhost:35811/"] + interval: 30s + timeout: 5s + start_period: 15s + retries: 3 deploy: resources: limits: