JG-mirror/Unbound/docker-compose.yaml

57 lines
1.7 KiB
YAML
Raw Normal View History

2024-01-13 21:25:01 +00:00
version: '3'
networks:
dns_net:
driver: bridge
ipam:
config:
- subnet: 172.23.0.0/16
2024-01-13 21:37:41 +00:00
proxy:
external: true
2024-01-13 21:25:01 +00:00
services:
pihole:
container_name: pihole
hostname: pihole
2024-01-15 08:51:49 +00:00
image: pihole/pihole:latest # remember to change this if you're using rpi
2024-01-13 21:25:01 +00:00
networks:
dns_net:
ipv4_address: 172.23.0.7
2024-01-13 21:37:41 +00:00
proxy:
2024-01-13 21:25:01 +00:00
ports:
2024-01-15 08:51:49 +00:00
- "53:53/tcp"
- "53:53/udp"
- "85:80/tcp"
2024-01-13 21:25:01 +00:00
#- "443:443/tcp"
environment:
2024-01-15 08:51:49 +00:00
TZ: 'Europe/London'
WEBPASSWORD: 'password'
PIHOLE_DNS_: '172.23.0.8#5053'
2024-01-13 21:25:01 +00:00
volumes:
2024-01-15 08:51:49 +00:00
- '/home/ubuntu/docker/pihole/etc-pihole/:/etc/pihole/'
- '/home/ubuntu/docker/pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/'
2024-01-13 21:25:01 +00:00
restart: unless-stopped
2024-01-13 21:37:41 +00:00
labels:
- "traefik.enable=true"
- "traefik.http.routers.pihole.entrypoints=http"
- "traefik.http.routers.pihole.rule=Host(`pihole.yourdomain.com`)"
- "traefik.http.middlewares.pihole-https-redirect.redirectscheme.scheme=https"
- "traefik.http.routers.pihole.middlewares=pihole-https-redirect"
- "traefik.http.routers.pihole-secure.entrypoints=https"
- "traefik.http.routers.pihole-secure.rule=Host(`pihole.yourdomain.com`)"
- "traefik.http.routers.pihole-secure.tls=true"
- "traefik.http.routers.pihole-secure.service=pihole"
- "traefik.http.services.pihole.loadbalancer.server.port=80"
- "traefik.docker.network=proxy"
2024-01-13 21:25:01 +00:00
unbound:
container_name: unbound
2024-01-15 08:51:49 +00:00
image: mvance/unbound:latest # remember to change this if you're using rpi
2024-01-13 21:25:01 +00:00
networks:
dns_net:
ipv4_address: 172.23.0.8
volumes:
2024-01-15 08:52:27 +00:00
- /home/ubuntu/docker/unbound:/opt/unbound/etc/unbound
2024-01-13 21:25:01 +00:00
ports:
2024-01-15 08:52:27 +00:00
- "5053:53/tcp"
- "5053:53/udp"
2024-01-13 21:25:01 +00:00
restart: unless-stopped