mirror of
https://github.com/pi-hole/docker-pi-hole.git
synced 2024-06-29 12:41:00 +02:00
Add hostname
to docker-compose
If this is not set, the PiHole admin page shows the Docker container's ID as hostname instead.
This commit is contained in:
parent
5c21f146f4
commit
64a1f548ef
|
@ -18,6 +18,7 @@ services:
|
||||||
pihole:
|
pihole:
|
||||||
container_name: pihole
|
container_name: pihole
|
||||||
image: pihole/pihole:latest
|
image: pihole/pihole:latest
|
||||||
|
hostname: pihole
|
||||||
ports:
|
ports:
|
||||||
- "53:53/tcp"
|
- "53:53/tcp"
|
||||||
- "53:53/udp"
|
- "53:53/udp"
|
||||||
|
|
|
@ -5,6 +5,7 @@ version: "3"
|
||||||
services:
|
services:
|
||||||
jwilder-proxy:
|
jwilder-proxy:
|
||||||
image: jwilder/nginx-proxy
|
image: jwilder/nginx-proxy
|
||||||
|
hostname: pihole.yourDomain.lan
|
||||||
ports:
|
ports:
|
||||||
- '80:80'
|
- '80:80'
|
||||||
environment:
|
environment:
|
||||||
|
|
|
@ -6,6 +6,7 @@ services:
|
||||||
pihole:
|
pihole:
|
||||||
container_name: pihole
|
container_name: pihole
|
||||||
image: pihole/pihole:latest
|
image: pihole/pihole:latest
|
||||||
|
hostname: pihole
|
||||||
# For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
|
# For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
|
||||||
ports:
|
ports:
|
||||||
- "53:53/tcp"
|
- "53:53/tcp"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user