32e559a833
I've learned this from the Jitsi config that you don't have to add a variable if the key name is the same in the compose file as it is in the .env file
22 lines
401 B
YAML
22 lines
401 B
YAML
version: "2"
|
|
services:
|
|
pihole:
|
|
container_name: pihole
|
|
image: pihole/pihole:latest
|
|
network_mode: "host"
|
|
environment:
|
|
- TZ
|
|
- WEBPASSWORD
|
|
- ServerIP
|
|
- DNS1
|
|
- DNS2
|
|
volumes:
|
|
- ./etc-pihole:/etc/pihole/
|
|
- ./etc-dnsmasq.d:/etc/dnsmasq.d/
|
|
dns:
|
|
- "${DNS3}"
|
|
- "${DNS1}"
|
|
cap_add:
|
|
- NET_ADMIN
|
|
restart: unless-stopped
|