Skip to content

Instantly share code, notes, and snippets.

@NuroDev
Last active October 7, 2018 14:42
Show Gist options
  • Save NuroDev/c6198c6d87ba29f9660f270530f72042 to your computer and use it in GitHub Desktop.
Save NuroDev/c6198c6d87ba29f9660f270530f72042 to your computer and use it in GitHub Desktop.
Raspberry Pi - Home Network Stack | Portainer, Pi-hole, Gateway
# Host directory paths
portainer_dir=dir_name/
pihole_dir=dir_name/
dnsmasq_dir=dir_name/
gateway_dir=dir_name/
# Other
server_ip=ip_address
version: "2"
services:
portainer:
image: portainer/portainer:latest
container_name: portainer
restart: always
ports:
- "9000:9000"
volumes:
- ${portainer_dir}:/data portainer/portainer
- /var/run/docker.sock:/var/run/docker.sock
monitor:
image: michaelmiklis/rpi-monitor:latest
container_name: monitor
restart: always
ports:
- "8888:8888"
devices:
- "/dev/vcsm"
volumes:
- "/opt/vc:/opt/vc"
- "/boot:/boot"
- "/sys:/dockerhost/sys:ro"
- "/etc:/dockerhost/etc:ro"
- "/proc:/dockerhost/proc:ro"
- "/usr/lib:/dockerhost/usr/lib:ro"
pihole:
image: pihole/pihole:v4.0_armhf
container_name: pihole
restart: always
ports:
- "443:443"
- "53:53"
- "53:53/udp"
- "67:67/udp"
- "80:80"
environment:
- ServerIP=${server_ip}
cap_add:
- NET_ADMIN
volumes:
- ${pihole_dir}:/etc/pihole
- ${dnsmasq_dir}/:/etc/dnsmasq.d
gateway:
image: mozillaiot/gateway:arm
container_name: gateway
restart: always
network_mode: host
cap_add:
- NET_ADMIN
volumes:
- ${gateway_dir}:/home/node/.mozilla-iot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment