diff --git a/docker/docker-compose.build.yml b/docker/docker-compose.build.yml index 9887244e4..28990692d 100644 --- a/docker/docker-compose.build.yml +++ b/docker/docker-compose.build.yml @@ -16,6 +16,11 @@ services: condition: service_healthy redis: condition: service_healthy + healthcheck: + test: ['CMD-SHELL', 'curl -f http://localhost:3333/api/v1/health'] + interval: 10s + timeout: 5s + retries: 5 postgres: image: postgres:15 env_file: diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index f78c89f63..d2be4db68 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -28,7 +28,11 @@ services: condition: service_healthy redis: condition: service_healthy - + healthcheck: + test: ['CMD-SHELL', 'curl -f http://localhost:3333/api/v1/health'] + interval: 10s + timeout: 5s + retries: 5 postgres: image: docker.io/library/postgres:15 cap_drop: