feat(demo): add auth flow UI service

This commit is contained in:
2026-07-14 10:12:22 +03:30
parent e382c4f93a
commit d43eb54e2d
16 changed files with 895 additions and 10 deletions

View File

@@ -15,7 +15,7 @@ services:
OTP_MAX_ATTEMPTS: ${OTP_MAX_ATTEMPTS:-5}
OTP_REQUEST_LIMIT: ${OTP_REQUEST_LIMIT:-3}
OTP_REQUEST_WINDOW_SECONDS: ${OTP_REQUEST_WINDOW_SECONDS:-300}
SMS_PROVIDER: ${SMS_PROVIDER:-kavenegar}
SMS_PROVIDER: ${SMS_PROVIDER:-debug}
KAVENEGAR_LOGIN_TEMPLATE: ${KAVENEGAR_LOGIN_TEMPLATE:-login-otp}
SMS_IR_VERIFY_TEMPLATE_ID: ${SMS_IR_VERIFY_TEMPLATE_ID:-570574}
ADMIN_MOBILE: ${ADMIN_MOBILE:-989120000000}
@@ -38,13 +38,28 @@ services:
MONGO_URI: mongodb://mongo:27017
REDIS_URL: redis://redis:6379/0
RABBITMQ_URL: amqp://guest:guest@rabbitmq:5672/
SMS_PROVIDER: ${SMS_PROVIDER:-kavenegar}
SMS_PROVIDER: ${SMS_PROVIDER:-debug}
KAVENEGAR_API_KEY: ${KAVENEGAR_API_KEY:-replace-with-real-key}
SMS_IR_API_KEY: ${SMS_IR_API_KEY:-replace-with-real-key}
depends_on:
rabbitmq:
condition: service_healthy
demo-app:
build: .
command: uvicorn gapido_auth.demo.app:app --host 0.0.0.0 --port 8080
environment:
AUTH_GRPC_TARGET: auth-service:50051
REDIS_URL: redis://redis:6379/0
DEMO_ENABLE_DEBUG_OTP: "true"
ports:
- "8080:8080"
depends_on:
auth-service:
condition: service_started
redis:
condition: service_started
mongo:
image: mongo:7
ports: