Added .env files to stacks

This commit is contained in:
2026-02-16 19:19:14 +01:00
parent 5e9f943996
commit 71a5db3b11
40 changed files with 211 additions and 89 deletions

18
pihole/.env Normal file
View File

@@ -0,0 +1,18 @@
# Pi-hole Docker Environment Variables
# Ports
# DNS Ports
PORT_DNS_TCP=53
PORT_DNS_UDP=53
# Default HTTP Port
PORT_HTTP=8080
# Default HTTPs Port. FTL will generate a self-signed certificate
PORT_HTTPS=8443
# Uncomment the below if using Pi-hole as your DHCP Server
#PORT_DHCP_SERVER=67
# Environment variables
TZ=Europe/Oslo'
# Set a password to access the web interface. Not setting one will result in a random password being assigned
FTLCONF_webserver_api_password='homekbr1998'

View File

@@ -8,19 +8,19 @@ services:
- pihole
ports:
# DNS Ports
- "53:53/tcp"
- "53:53/udp"
- "${PORT_DNS_TCP}:53/tcp"
- "${PORT_DNS_UDP}:53/udp"
# Default HTTP Port
- "8080:80/tcp"
- "${PORT_HTTP}:80/tcp"
# Default HTTPs Port. FTL will generate a self-signed certificate
- "8443:443/tcp"
- "${PORT_HTTPS}:443/tcp"
# Uncomment the below if using Pi-hole as your DHCP Server
#- "67:67/udp"
#- "${PORT_DHCP_SERVER}:67/udp"
environment:
# Set the appropriate timezone for your location (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones), e.g:
TZ: 'Europe/Oslo'
TZ: ${TZ}
# Set a password to access the web interface. Not setting one will result in a random password being assigned
FTLCONF_webserver_api_password: 'homekbr1998'
${FTLCONF_webserver_api_password}: 'homekbr1998'
# Volumes store your data between container upgrades
volumes:
# For persisting Pi-hole's databases and common configuration file