diff --git a/compose.yml b/compose.yml index fddf7f7..702f08a 100644 --- a/compose.yml +++ b/compose.yml @@ -44,12 +44,12 @@ services: #- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true" #- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}" - "coop-cloud.${STACK_NAME}.version=0.6.0+3.1.1" - # healthcheck: - # test: ["CMD", "curl", "-f", "http://localhost:3000"] - # interval: 30s - # timeout: 10s - # retries: 10 - # start_period: 1m + healthcheck: + test: "ruby -e \"require 'uri'; require 'net/http'; uri = URI('http://localhost:3000'); res = Net::HTTP.get_response(uri); if res.is_a?(Net::HTTPSuccess) then exit (0) else exit (1) end\"" + interval: 30s + timeout: 10s + retries: 6 + start_period: 5m db: image: postgres:13