diff --git a/docker-compose.yml b/docker-compose.yml index dfed9d8..077893e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -41,4 +41,11 @@ services: stdin_open: true tty: true command: ["/bin/bash"] - + + #This can help Docker automatically handle container failures and restart unhealthy containers. + healthcheck: + test: ["CMD-SHELL", "curl -f http://localhost/ || exit 1"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 60s \ No newline at end of file