Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
ADDED: healthcheck implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
AleixMT committed Jan 17, 2024
1 parent d86f723 commit 447219b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ services:
- "0.0.0.0:8762:8761"
restart: unless-stopped
healthcheck:
test: ["curl --fail --silent localhost:8761/actuator/health | grep UP || exit 1"]
interval: 60s
test: ["CMD-SHELL", "curl --fail --silent localhost:8761/actuator/health | grep -q UP"]
interval: 15s
retries: 5
timeout: 10s
start_period: 5s


postgres_operador:
Expand Down Expand Up @@ -49,7 +50,7 @@ services:
book-a-book-eureka:
condition: service_healthy
postgres_buscador:
condition: service_healthy
condition: service_started
restart: unless-stopped

book-a-book-operador:
Expand All @@ -60,7 +61,7 @@ services:
book-a-book-eureka:
condition: service_healthy
postgres_operador:
condition: service_healthy
condition: service_started
restart: unless-stopped


0 comments on commit 447219b

Please sign in to comment.