From af961b6f84679750efbf72eada8492a93169683c Mon Sep 17 00:00:00 2001 From: meliurwen Date: Mon, 27 Dec 2021 23:53:18 +0100 Subject: [PATCH] Switched to nginx for doh --- docker-compose.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 02131f2..c2da2da 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -33,18 +33,22 @@ services: - ./volumes/unbound/etc/unbound:/opt/unbound/etc/unbound dnscrypt-server-doh: - image: satishweb/doh-server:latest + build: + context: nginx/. + args: + - IMAGE=${NGINX_IMG:-nginx} + - TAG=${NGINX_TAG:-alpine} container_name: dnscrypt-server-doh + restart: ${NGINX_RESTART:-unless-stopped} + expose: + - 8080 environment: - - DEBUG=0 - - UPSTREAM_DNS_SERVER=udp:unbound:53 + - UPSTREAM_DNS_ADDR=unbound + - UPSTREAM_DNS_PORT=53 - DOH_HTTP_PREFIX=/dns-query - - DOH_SERVER_LISTEN=0.0.0.0:8053 - - DOH_SERVER_TIMEOUT=10 - - DOH_SERVER_TRIES=3 - - DOH_SERVER_VERBOSE=true + - DOH_LISTEN_PORT=8080 - VIRTUAL_HOST=doh.dns.eracolatore.tk - - VIRTUAL_PORT=8053 + - VIRTUAL_PORT=8080 - LETSENCRYPT_HOST=doh.dns.eracolatore.tk - LETSENCRYPT_EMAIL=meliurwen+letsencrypt@gmail.com