[mod] use latest
This commit is contained in:
parent
416f324df8
commit
af07c2e10a
1 changed files with 39 additions and 39 deletions
|
@ -1,39 +1,39 @@
|
||||||
# pihole
|
# pihole
|
||||||
# https://blog.ivansmirnov.name/set-up-pihole-using-docker-macvlan-network/
|
# https://blog.ivansmirnov.name/set-up-pihole-using-docker-macvlan-network/
|
||||||
|
|
||||||
version: '2'
|
version: '2'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
pihole:
|
pihole:
|
||||||
container_name: pihole-vlan
|
container_name: pihole-vlan
|
||||||
image: pihole/pihole:2021.12 # check the latest version on docker hub.
|
image: pihole/pihole # check the latest version on docker hub.
|
||||||
hostname: pihole # set an easy hostname to remember
|
hostname: pihole # set an easy hostname to remember
|
||||||
domainname: local # your local domain name
|
domainname: local # your local domain name
|
||||||
mac_address: de:ad:be:ef:ff:01 # can change or leave this
|
mac_address: de:ad:be:ef:ff:01 # can change or leave this
|
||||||
cap_add:
|
cap_add:
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
networks:
|
networks:
|
||||||
macvlan0: # same as network specified below
|
macvlan0: # same as network specified below
|
||||||
ipv4_address: 192.168.1.59 # the IP of the pihole container
|
ipv4_address: 192.168.1.59 # the IP of the pihole container
|
||||||
dns:
|
dns:
|
||||||
- 127.0.0.1 # use local DNS, since the pihole
|
- 127.0.0.1 # use local DNS, since the pihole
|
||||||
- 1.1.1.1 # optional fallback DNS
|
- 1.1.1.1 # optional fallback DNS
|
||||||
ports: # expose all pihole ports.
|
ports: # expose all pihole ports.
|
||||||
- 443/tcp
|
- 443/tcp
|
||||||
- 53/tcp
|
- 53/tcp
|
||||||
- 53/udp
|
- 53/udp
|
||||||
- 67/udp
|
- 67/udp
|
||||||
- 80/tcp
|
- 80/tcp
|
||||||
volumes: # mount our data volumes.
|
volumes: # mount our data volumes.
|
||||||
- './etc-pihole/:/etc/pihole/'
|
- './etc-pihole/:/etc/pihole/'
|
||||||
- './etc-dnsmasq.d/:/etc/dnsmasq.d/'
|
- './etc-dnsmasq.d/:/etc/dnsmasq.d/'
|
||||||
environment: # set variables for pihole configuration.
|
environment: # set variables for pihole configuration.
|
||||||
ServerIP: 192.168.1.59 # must match ipv4_address above
|
ServerIP: 192.168.1.59 # must match ipv4_address above
|
||||||
VIRTUAL_HOST: pihole.local # Must be hostname + domainname from above
|
VIRTUAL_HOST: pihole.local # Must be hostname + domainname from above
|
||||||
WEBPASSWORD: ""
|
WEBPASSWORD: ""
|
||||||
TZ: 'Europe/London' # pick your timezone
|
TZ: 'Europe/London' # pick your timezone
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
macvlan0: # externally created network (later in article)
|
macvlan0: # externally created network (later in article)
|
||||||
external: true
|
external: true
|
||||||
|
|
Loading…
Add table
Reference in a new issue