add host gateway to caddy extra hosts

This commit is contained in:
Abhishek Kondur 2023-04-26 15:44:08 +04:00
parent 09a5b0ff62
commit 8974ced2ea
2 changed files with 4 additions and 5 deletions

View file

@ -31,7 +31,7 @@ services:
STUN_PORT: "3478"
DEFAULT_PROXY_MODE: "off"
TURN_SERVER_HOST: "turn.NETMAKER_BASE_DOMAIN"
TURN_SERVER_API_HOST: "https://api.turn.NETMAKER_BASE_DOMAIN"
TURN_SERVER_API_HOST: "https://turnapi.NETMAKER_BASE_DOMAIN"
TURN_PORT: "3479"
TURN_USERNAME: "REPLACE_TURN_USERNAME"
TURN_PASSWORD: "REPLACE_TURN_PASSWORD"
@ -51,6 +51,8 @@ services:
image: caddy:2.6.2
container_name: caddy
restart: unless-stopped
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- /root/Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data

View file

@ -42,12 +42,9 @@ https://turn.NETMAKER_BASE_DOMAIN {
#TURN API
https://turnapi.NETMAKER_BASE_DOMAIN {
reverse_proxy http://turn:8089
reverse_proxy http://host.docker.internal:8089
}
# MQ
wss://broker.NETMAKER_BASE_DOMAIN {
reverse_proxy ws://mq:8883 # For EMQX websockets use `reverse_proxy ws://mq:8083`