From 962b3d479206dee525e8b10eb0e23e3eb46c8d72 Mon Sep 17 00:00:00 2001 From: sujiba <65259334+sujiba@users.noreply.github.com> Date: Thu, 4 May 2023 01:33:01 +0200 Subject: [PATCH] added variables for image and container_name --- docker-compose.yaml | 4 ++-- example.env | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index b3b11e5..949f0f5 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -3,8 +3,8 @@ version: "3" services: # More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/ pihole-unbound: - image: sujiba/pihole-unbound-hyperlocal:latest - container_name: pihole-unbound + image: ${image} + container_name: ${name} hostname: ${HOSTNAME} ports: - "53:53/tcp" diff --git a/example.env b/example.env index 372ec41..ec8a6b2 100644 --- a/example.env +++ b/example.env @@ -1,5 +1,9 @@ # More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/ +image=sujiba/pihole-unbound-hyperlocal:latest + +name=pihole-unbound + HOSTNAME=pihole # 80 or an alternative port if you use a reverse proxy like nginx