diff --git a/docker-compose.tmpl.yml b/docker-compose.tmpl.yml index 0d56003..68ef962 100644 --- a/docker-compose.tmpl.yml +++ b/docker-compose.tmpl.yml @@ -401,6 +401,9 @@ services: {{else}} ALLOWED_DOMAINS: ${DOMAIN} {{end}} + {{ if .Env.RESOLVER_ADDRESS }} + RESOLVER_ADDRESS: ${RESOLVER_ADDRESS} + {{end}} network_mode: host {{end}} diff --git a/sample.env b/sample.env index 3528941..4913308 100644 --- a/sample.env +++ b/sample.env @@ -6,6 +6,8 @@ # HTTPS Proxy # fully automated Lets Encrypt certificates ENABLE_HTTPS_PROXY=true +# If your network doesn't allow access to DNS at 8.8.8.8 specify your own resolvers +#RESOLVER_ADDRESS=x.x.x.x # coturn (a TURN Server) # requires either the abhove HTTPS Proxy to be enabled diff --git a/scripts/generate-compose b/scripts/generate-compose index 077f62a..b4e68f2 100755 --- a/scripts/generate-compose +++ b/scripts/generate-compose @@ -61,6 +61,7 @@ docker run \ -e REMOVE_OLD_RECORDING=${REMOVE_OLD_RECORDING:-false} \ -e RECORDING_MAX_AGE_DAYS=${RECORDING_MAX_AGE_DAYS:-14} \ -e ENABLE_HTTPS_PROXY=${ENABLE_HTTPS_PROXY:-false} \ + -e RESOLVER_ADDRESS=${RESOLVER_ADDRESS} \ -e ENABLE_WEBHOOKS=${ENABLE_WEBHOOKS:-false} \ -e ENABLE_COTURN=${ENABLE_COTURN:-false} \ -e ENABLE_GREENLIGHT=${ENABLE_GREENLIGHT:-false} \