#SVTH-575 - Uso do consul.

This commit is contained in:
2026-07-08 22:24:22 -03:00
parent 07db15ad99
commit a7b59b22ee

View File

@@ -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