You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
docker-dns/docker-compose.yml

63 lines
1.5 KiB

3 years ago
version: "3"
services:
dnscrypt-server:
image: jedisct1/dnscrypt-server:latest
container_name: dnscrypt-server
restart: unless-stopped
expose:
- "8443/tcp"
ports:
- "8443:8443/udp"
networks:
- dnscrypt
volumes:
- ./encrypted-dns.toml.in:/opt/encrypted-dns/etc/encrypted-dns.toml.in:ro
- ${LOCAL_STACK_DIR}/dnscrypt-server/keys:/opt/encrypted-dns/etc/keys
- ${LOCAL_STACK_DIR}/dnscrypt-server/lists:/opt/encrypted-dns/etc/lists
command: "init -N dncr.eracolatore.tk -E 173.249.32.7:8443"
environment:
- TZ='Europe/Berlin'
unbound:
image: mvance/unbound:latest
container_name: unbound
restart: unless-stopped
expose:
- "53/tcp"
- "53/udp"
networks:
- default
- dnscrypt
volumes:
- ./volumes/unbound/etc/unbound:/opt/unbound/etc/unbound
healthcheck:
disable: true
3 years ago
dnscrypt-server-doh:
build:
context: nginx/.
args:
- IMAGE=${NGINX_IMG:-nginx}
- TAG=${NGINX_TAG:-alpine}
3 years ago
container_name: dnscrypt-server-doh
restart: ${NGINX_RESTART:-unless-stopped}
expose:
- 8080
3 years ago
environment:
- UPSTREAM_DNS_ADDR=unbound
- UPSTREAM_DNS_PORT=53
3 years ago
- DOH_HTTP_PREFIX=/dns-query
- DOH_LISTEN_PORT=8080
3 years ago
- VIRTUAL_HOST=doh.dns.eracolatore.tk
- VIRTUAL_PORT=8080
3 years ago
- LETSENCRYPT_HOST=doh.dns.eracolatore.tk
- LETSENCRYPT_EMAIL=meliurwen+letsencrypt@gmail.com
networks:
default:
external:
name: ${NETWORK:-webservices}
dnscrypt: