Files
wirehole-ui/docker-compose.yml
T

81 lines
2.1 KiB
YAML
Raw Normal View History

2020-09-03 05:02:51 +00:00
version: "3"
networks:
private_network:
2020-09-03 05:02:51 +00:00
ipam:
driver: default
config:
2020-09-08 23:28:35 +00:00
- subnet: 10.2.0.0/24
2020-09-03 05:02:51 +00:00
services:
unbound:
image: "mvance/unbound:latest"
container_name: unbound
restart: unless-stopped
2020-09-08 23:28:35 +00:00
hostname: "unbound"
volumes:
- "./unbound:/opt/unbound/etc/unbound/"
networks:
private_network:
2020-09-08 23:28:35 +00:00
ipv4_address: 10.2.0.200
2020-09-03 05:02:51 +00:00
wireguard:
depends_on: [unbound, pihole]
2020-09-03 05:02:51 +00:00
image: linuxserver/wireguard
container_name: wireguard
cap_add:
- NET_ADMIN
- SYS_MODULE
environment:
- PUID=1000
- PGID=1000
2020-09-08 23:28:35 +00:00
- TZ=America/Los_Angeles # Change to your timezone
- SERVERPORT=51820
2020-09-09 23:37:25 +00:00
#- SERVERURL=my.ddns.net #optional - For use with DDNS (Uncomment to use)
2020-09-08 23:28:35 +00:00
- PEERS=1 # How many peers to generate for you (clients)
- PEERDNS=10.2.0.100 # Set it to point to pihole
- INTERNAL_SUBNET=10.6.0.0
2020-09-04 22:28:55 +00:00
2020-09-03 05:02:51 +00:00
volumes:
- ./wireguard:/config
- /lib/modules:/lib/modules
ports:
- "51820:51820/udp"
dns:
2020-09-08 23:28:35 +00:00
- 10.2.0.100 # Points to pihole
- 10.2.0.200 # Points to unbound
2020-09-03 05:02:51 +00:00
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
2020-09-09 23:55:36 +00:00
2020-09-03 05:02:51 +00:00
restart: unless-stopped
networks:
private_network:
2020-09-08 23:28:35 +00:00
ipv4_address: 10.2.0.3
2020-09-03 05:02:51 +00:00
pihole:
depends_on: [unbound]
container_name: pihole
image: pihole/pihole:latest
restart: unless-stopped
2020-09-08 23:28:35 +00:00
hostname: pihole
dns:
2020-09-04 22:28:55 +00:00
- 127.0.0.1
2020-09-08 23:28:35 +00:00
- 10.2.0.200 # Points to unbound
2020-09-03 05:02:51 +00:00
environment:
TZ: "America/Los_Angeles"
WEBPASSWORD: "" # Blank password - Can be whatever you want.
2020-09-08 23:28:35 +00:00
ServerIP: 10.1.0.100 # Internal IP of pihole
DNS1: 10.2.0.200 # Unbound IP
DNS2: 10.2.0.200 # If we don't specify two, it will auto pick google.
2020-09-03 05:02:51 +00:00
# Volumes store your data between container upgrades
volumes:
- "./etc-pihole/:/etc/pihole/"
- "./etc-dnsmasq.d/:/etc/dnsmasq.d/"
# Recommended but not required (DHCP needs NET_ADMIN)
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
cap_add:
- NET_ADMIN
networks:
private_network:
2020-09-08 23:28:35 +00:00
ipv4_address: 10.2.0.100