docker-pihole-unbound/two-container/docker-compose.yaml

55 lines
1.5 KiB
YAML
Raw Permalink Normal View History

2019-02-03 01:28:14 +01:00
version: '2'
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
2019-02-05 06:03:59 +01:00
hostname: pi-hole
2019-02-03 01:28:14 +01:00
mac_address: d0:ca:ab:cd:ef:01
# cap_add: # Uncomment if you want to use Pi-Hole for DHCP
# - NET_ADMIN
2019-02-03 01:28:14 +01:00
ports:
- 443/tcp
- 53/tcp
- 53/udp
# - 67/udp # Uncomment if you want to use Pi-Hole for DHCP
2019-02-03 01:28:14 +01:00
- 80/tcp
2019-03-22 06:33:53 +01:00
- 22/tcp
2019-02-03 01:28:14 +01:00
environment:
2019-03-22 06:33:53 +01:00
ServerIP: 192.168.1.5
2019-02-03 01:28:14 +01:00
WEBPASSWORD: ${WEBPASSWORD}
2019-03-22 06:33:53 +01:00
DNS1: 192.168.1.6
2019-02-03 01:28:14 +01:00
DNS2: 192.168.1.13
volumes:
- /volume1/docker/pihole-unbound/pihole/volume:/etc/pihole:rw
- /volume1/docker/pihole-unbound/pihole/config/hosts:/etc/hosts:ro
- /volume1/docker/pihole-unbound/pihole/config/resolv.conf:/etc/resolv.conf:ro
- /volume1/docker/pihole-unbound/pihole/config/dnsmasq.conf:/etc/dnsmasq.d/02-network.conf:ro
- /volume1/docker/pihole-unbound/pihole/config/pihole-FTL.conf:/etc/pihole/pihole-FTL.conf:ro
networks:
home:
2019-03-22 06:33:53 +01:00
ipv4_address: 192.168.1.5
2019-02-03 01:28:14 +01:00
restart: always
unbound:
container_name: unbound
image: mvance/unbound:latest
hostname: syn-unbound
mac_address: d0:ca:ab:cd:ef:02
ports:
- 53/tcp
- 53/udp
networks:
home:
2019-03-22 06:33:53 +01:00
ipv4_address: 192.168.1.6
2019-02-03 01:28:14 +01:00
restart: always
networks:
home:
driver: macvlan
driver_opts:
parent: ovs_eth1
ipam:
config:
- subnet: 192.168.1.0/24
gateway: 192.168.1.1
ip_range: 192.168.1.5/30 # 192.168.1.5 and 192.168.1.6