mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-07 07:55:16 +02:00
feat: add coturn for remote deployments (#84)
* feat: add coturn for remote deployment * Simplify remote setup * fix logic in UI
This commit is contained in:
parent
2e37c89310
commit
17409998d2
9 changed files with 326 additions and 144 deletions
|
|
@ -109,6 +109,11 @@ services:
|
|||
ENABLE_TELEMETRY: "${ENABLE_TELEMETRY:-true}"
|
||||
SENTRY_DSN: "https://3acdb63d5f1f70430953353b82de61e0@o4509486225096704.ingest.us.sentry.io/4510152922693632"
|
||||
|
||||
# TURN server configuration (for WebRTC NAT traversal in remote server)
|
||||
TURN_HOST: "${TURN_HOST:-}"
|
||||
TURN_USERNAME: "${TURN_USERNAME:-}"
|
||||
TURN_PASSWORD: "${TURN_PASSWORD:-}"
|
||||
|
||||
ports:
|
||||
- "8000:8000"
|
||||
depends_on:
|
||||
|
|
@ -149,6 +154,11 @@ services:
|
|||
|
||||
# Sentry
|
||||
SENTRY_DSN: "https://d9387fed5f80e90781f1dbd9b2c0994c@o4509486225096704.ingest.us.sentry.io/4510124708200448"
|
||||
|
||||
# TURN server configuration (for WebRTC NAT traversal in remote server)
|
||||
NEXT_PUBLIC_TURN_HOST: "${TURN_HOST:-}"
|
||||
NEXT_PUBLIC_TURN_USERNAME: "${TURN_USERNAME:-}"
|
||||
NEXT_PUBLIC_TURN_PASSWORD: "${TURN_PASSWORD:-}"
|
||||
ports:
|
||||
- "3010:3010"
|
||||
depends_on:
|
||||
|
|
@ -176,6 +186,32 @@ services:
|
|||
networks:
|
||||
- app-network
|
||||
|
||||
coturn:
|
||||
image: coturn/coturn:4.6.3
|
||||
container_name: coturn
|
||||
restart: unless-stopped
|
||||
profiles: ["remote"]
|
||||
network_mode: host
|
||||
environment:
|
||||
TURN_USERNAME: ${TURN_USERNAME}
|
||||
TURN_PASSWORD: ${TURN_PASSWORD}
|
||||
command: >
|
||||
-n
|
||||
--listening-port=3478
|
||||
--tls-listening-port=5349
|
||||
--min-port=49152
|
||||
--max-port=49200
|
||||
--realm=${TURN_REALM:-dograh.com}
|
||||
--user=${TURN_USERNAME}:${TURN_PASSWORD}
|
||||
--lt-cred-mech
|
||||
--fingerprint
|
||||
--no-cli
|
||||
--log-file=stdout
|
||||
--no-multicast-peers
|
||||
--no-tlsv1
|
||||
--no-tlsv1_1
|
||||
${TURN_HOST:+--external-ip=$TURN_HOST}
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
redis_data:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue