first
This commit is contained in:
38
.gitignore
vendored
Normal file
38
.gitignore
vendored
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
# ------------------------
|
||||||
|
# Secrets
|
||||||
|
# ------------------------
|
||||||
|
.env
|
||||||
|
|
||||||
|
# ------------------------
|
||||||
|
# Pi-hole data (state)
|
||||||
|
# ------------------------
|
||||||
|
etc-pihole/
|
||||||
|
|
||||||
|
# ------------------------
|
||||||
|
# Logs / runtime
|
||||||
|
# ------------------------
|
||||||
|
*.log
|
||||||
|
logs/
|
||||||
|
pihole.log
|
||||||
|
|
||||||
|
# ------------------------
|
||||||
|
# Docker
|
||||||
|
# ------------------------
|
||||||
|
*.pid
|
||||||
|
*.sock
|
||||||
|
|
||||||
|
# ------------------------
|
||||||
|
# System / editor
|
||||||
|
# ------------------------
|
||||||
|
.DS_Store
|
||||||
|
Thumbs.db
|
||||||
|
*~
|
||||||
|
*.swp
|
||||||
|
*.swo
|
||||||
|
|
||||||
|
# ------------------------
|
||||||
|
# Backup / temp
|
||||||
|
# ------------------------
|
||||||
|
*.bak
|
||||||
|
*.tmp
|
||||||
|
*.old
|
||||||
35
docker-compose.yaml
Normal file
35
docker-compose.yaml
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
services:
|
||||||
|
pihole:
|
||||||
|
image: pihole/pihole:latest
|
||||||
|
container_name: pihole
|
||||||
|
hostname: pihole
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
|
||||||
|
ports:
|
||||||
|
- "53:53/tcp"
|
||||||
|
- "53:53/udp"
|
||||||
|
- "8080:80"
|
||||||
|
|
||||||
|
environment:
|
||||||
|
TZ: ${TZ}
|
||||||
|
WEBPASSWORD: ${WEBPASSWORD}
|
||||||
|
PIHOLE_DNS_: ${PIHOLE_DNS_}
|
||||||
|
DNSMASQ_LISTENING: all
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- etc-pihole:/etc/pihole
|
||||||
|
- /etc/dnsmasq.d/address.d:/etc/dnsmasq.d
|
||||||
|
|
||||||
|
cap_add:
|
||||||
|
- NET_ADMIN
|
||||||
|
|
||||||
|
# viktig hvis du senere kombinerer med WireGuard
|
||||||
|
dns:
|
||||||
|
- 127.0.0.1
|
||||||
|
- 1.1.1.1
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
etc-pihole:
|
||||||
Reference in New Issue
Block a user