summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x.env1
-rwxr-xr-xdocker-compose.yml8
2 files changed, 5 insertions, 4 deletions
diff --git a/.env b/.env
index 87dc6a7..ea575f0 100755
--- a/.env
+++ b/.env
@@ -3,3 +3,4 @@ DOMAIN=tobyvin.com
INTERFACE=eth0
SERVER_IP=192.168.1.2
UPSTREAM_DNS=1.1.1.1
+PROJ_DIR=/home/pi/dkr/pihole \ No newline at end of file
diff --git a/docker-compose.yml b/docker-compose.yml
index 939d39c..83a7459 100755
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -22,8 +22,8 @@ services:
- DNS2=172.31.1.3#5053
- DNSMASQ_LISTENING=all
volumes:
- - ./data/pihole:/etc/pihole
- - ./data/dnsmasq.d:/etc/dnsmasq.d
+ - ${PROJ_DIR}/data/pihole:/etc/pihole
+ - ${PROJ_DIR}/data/dnsmasq.d:/etc/dnsmasq.d
networks:
default:
ipv4_address: 172.31.1.2
@@ -52,7 +52,7 @@ services:
restart: unless-stopped
dhcp_helper:
- build: ./dhcp_helper
+ build: ${PROJ_DIR}/dhcp_helper
container_name: dhcp_helper
cap_add:
- NET_ADMIN
@@ -62,7 +62,7 @@ services:
secrets:
webpassword:
- file: ./secrets/webpassword
+ file: ${PROJ_DIR}/secrets/webpassword
networks:
default: