-
-
Save NuroDev/c6198c6d87ba29f9660f270530f72042 to your computer and use it in GitHub Desktop.
Raspberry Pi - Home Network Stack | Portainer, Pi-hole, Gateway
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Host directory paths | |
portainer_dir=dir_name/ | |
pihole_dir=dir_name/ | |
dnsmasq_dir=dir_name/ | |
gateway_dir=dir_name/ | |
# Other | |
server_ip=ip_address |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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