Docker on rasperry pi's
smaller projects run from raspberry pi's
rasp-007
raspberry pi 7
rasp-007
Pi-Hole
Pi-Hole currently being run here in docker compose
##Docker compose file##
sudo nano docker-compose.yml
version: "3"
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
- "80:80/tcp"
- "443:443/tcp"
environment:
TZ: 'America/New_York'
WEBPASSWORD: 'SecurePasswordHere' #passwordfor the web api
ServerIP: 'StaticIP here'
# Volumes store your data between container upgrades
volumes:
- './etc-pihole/:/etc/pihole/'
- './etc-dnsmasq.d/:/etc/dnsmasq.d/'
dns:
- 127.0.0.1
- 8.8.8.8 #google dns
restart: unless-stopped
rasp-007
PiVPN
PiVPN is being run from this pi
This was an easy solution to get VPN access to devices in my home
This was done on rasp-007 so it could integrate easily with Pi-Hole, all devices on VPN use dns from Pi-Hole and get ad blocking on the go
Installing Docker
Installing Docker
Install docker and docker compose
##Install Docker##
curl -fsSL https://get.docker.com -o get-docker.sh
sudo chmod +x get-docker.sh
sudo ./get-docker.sh
sudo usermod -aG docker pi
##Install Docker-Compose##
sudo apt-get install -y libffi-dev libssl-dev python3 python3-pip
sudo apt-get remove python-configparser
sudo pip3 install docker-compose