Add network services: Pi-hole, Portainer, smartctl

This commit is contained in:
rezayaghobi-dev
2026-07-10 21:27:15 +03:30
parent 97bf0985ab
commit de9d143110
4 changed files with 36 additions and 0 deletions

1
pihole/.env.example Normal file
View File

@@ -0,0 +1 @@
PIHOLE_WEBPASSWORD=change-me

14
pihole/docker-compose.yml Normal file
View File

@@ -0,0 +1,14 @@
services:
pihole:
container_name: pihole
image: ghcr.io/pi-hole/pihole:latest
network_mode: host
env_file:
- .env
environment:
TZ: "Asia/Tehran"
WEBPASSWORD: ${PIHOLE_WEBPASSWORD}
volumes:
- ./etc-pihole:/etc/pihole
- ./etc-dnsmasq.d:/etc/dnsmasq.d
restart: unless-stopped

View File

@@ -0,0 +1,10 @@
services:
portainer:
image: portainer/portainer-ce:latest
container_name: portainer
restart: unless-stopped
ports:
- "9000:9000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /home/rezayaghobi/docker/portainer/data:/data

View File

@@ -0,0 +1,11 @@
services:
smartctl_exporter:
image: ghcr.io/prometheus-community/smartctl_exporter:latest
container_name: smartctl_exporter
privileged: true
volumes:
- /dev:/dev
- /run/udev:/run/udev:ro
ports:
- "9633:9633"
restart: unless-stopped