Flask + start/stop internet connection scripts
297
Pihole container setup for DHCP on host network:
mkdir ~/docker/pihole
touch ~/docker/pihole/docker-compose.yml
version: "3"
services:
pihole:
container_name: pihole
image: nerevarip/pihole:latest
network_mode: host
environment:
TZ: 'Europe/Warsaw'
WEBPASSWORD: 'set a secure password here or it will be random'
VIRTUAL_HOST: 'pi.hole'
PROXY_LOCATION: 'pi.hole'
DNSMASQ_USER: 'pihole'
INTERFACE: 'enp4s0' ##may be different
no-dhcp-interface: 'lo'
volumes:
- './etc-pihole:/etc/pihole'
- './etc-dnsmasq.d:/etc/dnsmasq.d'
cap_add:
- NET_ADMIN
restart: unless-stopped
cd ~/docker/pihole
docker-compose up -d
After building an container do:
sudo systemctl stop systemd-resolved
Admin webpage:
http://localhost/admin
Content type
Image
Digest
sha256:eb7ca84a6…
Size
257.1 MB
Last updated
over 3 years ago
docker pull nerevarip/pihole