franz/dns/docker-compose.yml

66 lines
1.4 KiB
YAML
Raw Normal View History

2022-08-27 19:00:34 +02:00
version: '2'
2022-08-27 21:20:24 +02:00
services:
2022-08-27 19:00:34 +02:00
pihole:
container_name: pihole
2022-08-28 11:57:22 +02:00
hostname: pihole
2022-08-27 19:00:34 +02:00
image: pihole/pihole
volumes:
- pihole_dnsmasq:/etc/dnsmasq.d
- pihole_data:/etc/pihole
restart: always
environment:
- IPv6=True
- TZ=Europe/Berlin
- SKIPGRAVITYONBOOT=1
2022-08-27 21:20:24 +02:00
- VIRTUAL_HOST=pihole.franz.local
2022-08-27 19:00:34 +02:00
ports:
- "53:53/tcp"
- "53:53/udp"
cap_add:
- NET_ADMIN
networks:
traefik_net:
2022-08-27 21:20:24 +02:00
dns_net:
ipv4_address: 172.28.1.6
2022-08-27 19:00:34 +02:00
labels:
- traefik.enable=true
- traefik.http.routers.pihole.entrypoints=web
- traefik.http.routers.pihole.rule=Host(`pihole.franz.local`)
- traefik.http.services.pihole.loadbalancer.server.port=80
2022-08-28 11:57:22 +02:00
- traefik.docker.network=traefik-net
2022-08-27 19:00:34 +02:00
unbound:
container_name: unbound
2022-08-27 21:20:24 +02:00
image: klutchell/unbound:edge
2022-08-27 19:00:34 +02:00
volumes:
- unbound_data:/opt/unbound/etc/unbound
dns:
- 1.1.1.1
restart: always
networks:
traefik_net:
2022-08-27 21:20:24 +02:00
dns_net:
ipv4_address: 172.28.1.5
networks:
2022-08-27 19:00:34 +02:00
traefik_net:
name: traefik-net
external: true
2022-08-27 21:20:24 +02:00
dns_net:
name: dns-net
driver: bridge
ipam:
config:
2022-08-28 17:46:58 +02:00
-
2022-08-27 21:20:24 +02:00
subnet: 172.28.1.0/24
ip_range: 172.28.1.5/30
gateway: 172.28.1.1
2022-08-27 19:00:34 +02:00
volumes:
pihole_dnsmasq:
name: pihole_dnsmasq
pihole_data:
name: pihole_data
unbound_data:
2022-08-27 21:20:24 +02:00
name: unbound_data