Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3.7'
- services:
- dnscrypt-proxy:
- image: melchor9000/dnscrypt-proxy
- hostname: dnscrypt-proxy
- container_name: dnscrypt-proxy
- restart: always
- volumes:
- #Here I have the toml and txt files
- #The cache is stored in another folder, but is not persisted
- - "/path_to_docker_volumes/dnscrypt-proxy:/etc/dnscrypt-proxy"
- networks:
- pihole_net:
- aliases:
- - dnscrypt-proxy
- ipv4_address: 172.20.0.10
- pihole:
- container_name: pihole
- hostname: pihole
- image: pihole/pihole
- restart: always
- ports:
- - "53:53/tcp"
- - "53:53/udp"
- - "80:80/tcp"
- - "443:443/tcp"
- volumes:
- - /path_to_docker_volumes/pihole/pihole:/etc/pihole/
- - /path_to_docker_volumes/pihole/dnsmasq.d/:/etc/dnsmasq.d/
- cap_add:
- - NET_ADMIN
- dns:
- - 127.0.0.1
- - 1.1.1.1
- environment:
- TZ: Europe/Athens
- ServerIP: 192.168.1.110
- DNS1: 172.20.0.10#53535
- DNS2: 172.20.0.10#53535
- WEBPASSWORD: "web_pass"
- restart: always
- depends_on:
- - dnscrypt-proxy
- networks:
- pihole_net:
- aliases:
- - pihole
- ipv4_address: 172.20.0.20
- openvpn:
- cap_add:
- - NET_ADMIN
- image: kylemanna/openvpn
- container_name: openvpn
- hostname: openvpn
- ports:
- - "1194:1194/udp"
- restart: always
- depends_on:
- - pihole
- volumes:
- - /path_to_docker_volumes/openvpn:/etc/openvpn
- networks:
- pihole_net:
- aliases:
- - openvpn
- ipv4_address: 172.20.0.30
- networks:
- pihole_net:
- ipam:
- driver: default
- config:
- - subnet: 172.20.0.0/16
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement