diff --git a/docker-compose.yml b/docker-compose.yml index e16f93f4c0..4206d3369c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,5 @@ # Do not edit this file directly. Use a ‘docker-compose.override.yaml’ file if you can. -# Refer to `docker-compose.override.yaml.example’ for some sample configurations. +# Refer to `docker-compose.override.yaml.example` for some sample configurations. services: api: @@ -27,6 +27,13 @@ services: - ./images:/app/client/public/images - ./uploads:/app/uploads - ./logs:/app/api/logs + healthcheck: + test: ["CMD", "curl", "-f", "http://api:${PORT}/health || exit 1"] + interval: 30s + timeout: 10s + retries: 5 + start_period: 10s + mongodb: container_name: chat-mongodb image: mongo