Advertisement
Guest User

Pihole+DNSCrypt+OpenVPN

a guest
Feb 8th, 2019
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.80 KB | None | 0 0
  1. version: '3.7'
  2.  
  3. services:
  4.     dnscrypt-proxy:
  5.       image: melchor9000/dnscrypt-proxy
  6.       hostname: dnscrypt-proxy
  7.       container_name: dnscrypt-proxy
  8.       restart: always
  9.       volumes:
  10.        #Here I have the toml and txt files
  11.         #The cache is stored in another folder, but is not persisted
  12.         - "/path_to_docker_volumes/dnscrypt-proxy:/etc/dnscrypt-proxy"
  13.       networks:
  14.         pihole_net:
  15.           aliases:
  16.            - dnscrypt-proxy
  17.           ipv4_address: 172.20.0.10
  18.     pihole:
  19.      container_name: pihole
  20.      hostname: pihole
  21.      image: pihole/pihole
  22.      restart: always
  23.      ports:
  24.       - "53:53/tcp"
  25.        - "53:53/udp"
  26.        - "80:80/tcp"
  27.        - "443:443/tcp"
  28.      volumes:
  29.       - /path_to_docker_volumes/pihole/pihole:/etc/pihole/
  30.        - /path_to_docker_volumes/pihole/dnsmasq.d/:/etc/dnsmasq.d/
  31.      cap_add:
  32.       - NET_ADMIN
  33.      dns:
  34.       - 127.0.0.1
  35.        - 1.1.1.1
  36.      environment:
  37.        TZ: Europe/Athens
  38.        ServerIP: 192.168.1.110
  39.        DNS1: 172.20.0.10#53535
  40.        DNS2: 172.20.0.10#53535
  41.        WEBPASSWORD: "web_pass"
  42.      restart: always
  43.      depends_on:
  44.       - dnscrypt-proxy
  45.      networks:
  46.        pihole_net:
  47.          aliases:
  48.           - pihole
  49.          ipv4_address: 172.20.0.20
  50.     openvpn:
  51.       cap_add:
  52.       - NET_ADMIN
  53.       image: kylemanna/openvpn
  54.       container_name: openvpn
  55.       hostname: openvpn
  56.       ports:
  57.       - "1194:1194/udp"
  58.       restart: always
  59.       depends_on:
  60.       - pihole
  61.       volumes:
  62.       - /path_to_docker_volumes/openvpn:/etc/openvpn
  63.       networks:
  64.         pihole_net:
  65.           aliases:
  66.            - openvpn
  67.           ipv4_address: 172.20.0.30
  68.  
  69.  
  70. networks:
  71.   pihole_net:
  72.     ipam:
  73.       driver: default
  74.       config:
  75.         - subnet: 172.20.0.0/16
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement