Merge pull request #743 from e2jk/docker-hostname

Add `hostname` to docker-compose
This commit is contained in:
Adam Warner 2021-04-16 23:31:56 +01:00 committed by GitHub
commit 4b7c35be7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

@ -18,6 +18,7 @@ services:
pihole:
container_name: pihole
image: pihole/pihole:latest
hostname: pi.hole
ports:
- "53:53/tcp"
- "53:53/udp"

View File

@ -5,6 +5,7 @@ version: "3"
services:
jwilder-proxy:
image: jwilder/nginx-proxy
hostname: pihole.yourDomain.lan
ports:
- '80:80'
environment:

View File

@ -6,6 +6,7 @@ services:
pihole:
container_name: pihole
image: pihole/pihole:latest
hostname: pi.hole
# For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
ports:
- "53:53/tcp"