fix(deploy): wait for state stores on startup

This commit is contained in:
2026-07-14 11:08:13 +03:30
parent 5f88e964f6
commit dd8c21d808
3 changed files with 67 additions and 8 deletions

View File

@@ -1,23 +1,35 @@
services:
auth-service:
restart: unless-stopped
environment:
SMS_PROVIDER: ${SMS_PROVIDER:?set SMS_PROVIDER in production env}
JWT_SECRET_KEY: ${JWT_SECRET_KEY:?set JWT_SECRET_KEY in production env}
ADMIN_MOBILE: ${ADMIN_MOBILE:?set ADMIN_MOBILE in production env}
sms-worker:
restart: unless-stopped
environment:
SMS_PROVIDER: ${SMS_PROVIDER:?set SMS_PROVIDER in production env}
KAVENEGAR_API_KEY: ${KAVENEGAR_API_KEY:-}
SMS_IR_API_KEY: ${SMS_IR_API_KEY:-}
demo-app:
restart: unless-stopped
environment:
DEMO_ENABLE_DEBUG_OTP: "false"
depends_on:
auth-service:
condition: service_healthy
mongo:
restart: unless-stopped
redis:
restart: unless-stopped
rabbitmq:
restart: unless-stopped
caddy:
image: caddy:2.8-alpine
restart: unless-stopped
@@ -41,4 +53,3 @@ services:
volumes:
caddy-data:
caddy-config: