diff --git a/stack.production.yml b/stack.production.yml index f89e1d2..dff3181 100644 --- a/stack.production.yml +++ b/stack.production.yml @@ -97,6 +97,12 @@ services: traefik.http.middlewares.authelia-basic.forwardauth.address: http://authelia_authelia:9091/api/verify?auth=basic traefik.http.middlewares.authelia-basic.forwardauth.trustForwardHeader: "true" traefik.http.middlewares.authelia-basic.forwardauth.authResponseHeaders: Remote-User,Remote-Groups,Remote-Name,Remote-Email + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:9091/api/health"] + start_period: 15s + interval: 30s + timeout: 10s + retries: 3 logging: driver: json-file options: @@ -124,6 +130,12 @@ services: labels: us.nixc.autodeploy: "true" traefik.enable: "false" + healthcheck: + test: ["CMD", "redis-cli", "ping"] + start_period: 10s + interval: 30s + timeout: 5s + retries: 3 logging: driver: json-file options: @@ -155,6 +167,12 @@ services: labels: us.nixc.autodeploy: "true" traefik.enable: "false" + healthcheck: + test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "authelia", "-pauthelia"] + start_period: 15s + interval: 30s + timeout: 10s + retries: 3 logging: driver: json-file options: