Files
crm-calls/docker-compose.calls.yml

39 lines
1.6 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Модуль «Дзвінки» для CRM: https://crm-calls.volcanic.tes.gd (отдельное приложение Coolify).
# Jitsi — docker-compose.yml (другое приложение, https://meet.volcanic.tes.gd).
# Секреты JWT_APP_SECRET (тот же, что у Jitsi) и GUEST_LINK_SECRET — только в env Coolify.
services:
calls:
build:
context: ./calls
dockerfile: Dockerfile
expose:
- "8080"
environment:
ASPNETCORE_ENVIRONMENT: Production
ASPNETCORE_URLS: "http://+:8080"
Storage__DataDir: /data
Calls__PublicUrl: '${CALLS_PUBLIC_URL:-https://crm-calls.volcanic.tes.gd}'
Calls__LinkSecret: '${GUEST_LINK_SECRET}'
Calls__SessionHours: '${CALLS_SESSION_HOURS:-12}'
# origin CRM через пробел: из них принимается crm:auth, они же в frame-ancestors
Crm__Origins: '${CRM_ORIGINS:-https://test.units.tvorymo.com}'
Crm__AssetsOrigin: '${CRM_ASSETS_ORIGIN:-https://test.units.tvorymo.com}'
Supabase__Url: '${SUPABASE_URL:-https://yjxbkcqsquwbsyoonfkn.supabase.co}'
Supabase__PublishableKey: '${SUPABASE_PUBLISHABLE_KEY}'
Jitsi__Domain: '${JITSI_DOMAIN:-meet.volcanic.tes.gd}'
Jitsi__AppId: '${JWT_APP_ID:-tvorymo-crm}'
Jitsi__Audience: '${JWT_AUDIENCE:-jitsi}'
Jitsi__AppSecret: '${JWT_APP_SECRET}'
Jitsi__TokenTtlMinutes: '${JITSI_TOKEN_TTL_MINUTES:-15}'
volumes:
- calls-data:/data
healthcheck:
test: ["CMD", "curl", "-fsS", "http://127.0.0.1:8080/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 20s
volumes:
calls-data: