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

Commit

Permalink
UPDATED: configuration of operator
Browse files Browse the repository at this point in the history
  • Loading branch information
AleixMT committed Jan 17, 2024
1 parent 2a06b9b commit d86f723
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: "2.1"
version: "3.9"
services:

book-a-book-eureka:
Expand All @@ -8,9 +8,9 @@ services:
- "0.0.0.0:8762:8761"
restart: unless-stopped
healthcheck:
test: curl --fail http://localhost:8761 || exit 1
test: ["curl --fail --silent localhost:8761/actuator/health | grep UP || exit 1"]
interval: 60s
retries: 3
retries: 5
timeout: 10s


Expand Down Expand Up @@ -46,17 +46,21 @@ services:
ports:
- "0.0.0.0:8082:8081"
depends_on:
- book-a-book-eureka
- postgres_buscador
book-a-book-eureka:
condition: service_healthy
postgres_buscador:
condition: service_healthy
restart: unless-stopped

book-a-book-operador:
image: aleixmt/book-a-book-operador:latest
ports:
- "0.0.0.0:8084:8083"
depends_on:
- book-a-book-eureka
- postgres_operador
book-a-book-eureka:
condition: service_healthy
postgres_operador:
condition: service_healthy
restart: unless-stopped


0 comments on commit d86f723

Please sign in to comment.