Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
- sqldata:/root/data
environment:
# config-dependant vars
- STUN_SERVERS=stun1.l.google.com:19302,stun2.l.google.com:19302,stun3.l.google.com:19302,stun4.l.google.com:19302
- STUN_SERVERS=stun.${NM_DOMAIN}:3478,stun1.l.google.com:19302,stun2.l.google.com:19302,stun3.l.google.com:19302,stun4.l.google.com:19302
# The domain/host IP indicating the mq broker address
- BROKER_ENDPOINT=wss://broker.${NM_DOMAIN} # For EMQX broker use `BROKER_ENDPOINT=wss://broker.${NM_DOMAIN}/mqtt`
# For EMQX broker (uncomment the two lines below)
Expand All @@ -39,6 +39,14 @@ services:
links:
- "netmaker:api"
restart: always
stun:
container_name: stun
image: coturn/coturn
restart: always
ports:
- "3478:3478/udp" # STUN UDP
environment:
- LISTENING_PORT=3478

caddy:
image: caddy:2.8.4
Expand Down
4 changes: 4 additions & 0 deletions docker/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ broker.{$NM_DOMAIN} {
}
reverse_proxy @ws mq:8883 # For EMQX websockets use `reverse_proxy @ws mq:8083`
}

https://stun.{$NM_DOMAIN} {
reverse_proxy stun:3478
}