diff --git a/services/wordpress.hcl b/services/wordpress.hcl index a47c818..9edf015 100644 --- a/services/wordpress.hcl +++ b/services/wordpress.hcl @@ -69,6 +69,19 @@ job "wordpress" { "traefik.http.routers.wordpress.rule=Host(`wordpress.paler.net`) || Host(`ines.paler.net`) || Host(`coachingfor.me`) || Host(`coachingfor.work`) || Host(`petru.ines.paler.net`) || Host(`liam.paler.net`) || Host(`tomas.paler.net`) || Host(`musictogethersilvercoast.pt`)", "traefik.http.routers.wordpress.middlewares=compress@file", ] + + check { + type = "http" + port = "http" + path = "/wp-admin/install.php" + interval = "5s" + timeout = "2s" + + check_restart { + limit = 3 + grace = "60s" + } + } } } }