From a7b59b22ee09a3876bd1e0fcf7b4737e14ef6868 Mon Sep 17 00:00:00 2001 From: renator2 Date: Wed, 8 Jul 2026 22:24:22 -0300 Subject: [PATCH] #SVTH-575 - Uso do consul. --- docker-compose.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 3b190c8..8af4869 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -62,12 +62,16 @@ services: - MONGODB_DATABASE=${MONGODB_DATABASE} - SYSTEM_BASE_CONN=${SYSTEM_BASE_CONN} - FRONTEND_CONN=${INTERNAL_HOST}:${FRONTEND_SUITE_APP_INTERNAL_PORT} + - ConsulSettings__Address=http://consul:8500 - KEEPALIVE_ATTENDANCE_SYSTEM_BACKEND_HOST=${KEEPALIVE_ATTENDANCE_SYSTEM_BACKEND_HOST} - KEEPALIVE_ATTENDANCE_SYSTEM_FRONTEND_HOST=${KEEPALIVE_ATTENDANCE_SYSTEM_FRONTEND_HOST} - KEEPALIVE_REPORTS_BACKEND_HOST=${KEEPALIVE_REPORTS_BACKEND_HOST} - KEEPALIVE_REPORTS_FRONTEND_HOST=${KEEPALIVE_REPORTS_FRONTEND_HOST} - KEEPALIVE_USERS_BACKEND_HOST=${KEEPALIVE_USERS_BACKEND_HOST} - KEEPALIVE_USERS_FRONTEND_HOST=${KEEPALIVE_USERS_FRONTEND_HOST} + depends_on: + consul: + condition: service_healthy networks: - app-network @@ -81,11 +85,15 @@ services: - ConnectionStrings__UsersDb=Host=postgres;Port=5432;Database=seventh_users;Username=${POSTGRES_USER};Password=${POSTGRES_PASSWORD} - MongoDbSettings__ConnectionString=mongodb://mongodb:27017 - ConsulSettings__Address=http://consul:8500 + - ServiceRegistrationSettings__Host=users-api + - ServiceRegistrationSettings__Port=${BACKEND_USERS_API_INTERNAL_PORT} depends_on: postgres: condition: service_healthy mongodb: condition: service_healthy + consul: + condition: service_healthy networks: - app-network