Fix a bunch of stuff. Add docker compose files to make server config repo obsolete

This commit is contained in:
2024-07-21 22:04:13 -05:00
parent 060d736b24
commit 4c58bc45d0
33 changed files with 872 additions and 51 deletions

View File

@ -0,0 +1,30 @@
version: "3"
services:
pihole:
image: pihole/pihole:latest
container_name: pihole
hostname: pihole
domainname: pihole.${DOMAIN}
networks:
${NETWORK_NAME}:
ipv4_address: ${IP_PREFIX}.3
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
- "80:80/tcp"
env_file:
- ../user_variables.env
environment:
TZ: ${TZ}
WEBPASSWORD: ${PIHOLE_PW}
cap_add:
- NET_ADMIN
volumes:
- ${VOLUME_DIR}/Pihole/Etc:/etc/pihole
- ${VOLUME_DIR}/Pihole/DNSMasq:/etc/dnsmasq.d
tty: true
restart: unless-stopped
networks:
${NETWORK_NAME}:
external: true