Skip to content

Instantly share code, notes, and snippets.

@iayanpahwa
Created November 17, 2021 10:21
Show Gist options
  • Save iayanpahwa/efc6685d21650bd1920223fdb063a272 to your computer and use it in GitHub Desktop.
Save iayanpahwa/efc6685d21650bd1920223fdb063a272 to your computer and use it in GitHub Desktop.
home server : docker-compose.yml
version: '3.6'
services:
influxdb:
container_name: influxdb
image: "influxdb:latest"
restart: unless-stopped
ports:
- 8086:8086
- 8083:8083
- 2003:2003
env_file:
- ./services/influxdb/influxdb.env
volumes:
- ./volumes/influxdb/data:/var/lib/influxdb
- ./backups/influxdb/db:/var/lib/influxdb/backup
grafana:
container_name: grafana
image: grafana/grafana
restart: unless-stopped
user: "0"
ports:
- 3000:3000
env_file:
- ./services/grafana/grafana.env
volumes:
- ./volumes/grafana/data:/var/lib/grafana
- ./volumes/grafana/log:/var/log/grafana
mosquitto:
container_name: mosquitto
image: eclipse-mosquitto
restart: unless-stopped
user: "1883"
ports:
- 1883:1883
- 9001:9001
volumes:
- ./volumes/mosquitto/data:/mosquitto/data
- ./volumes/mosquitto/log:/mosquitto/log
- ./services/mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf
- ./services/mosquitto/filter.acl:/mosquitto/config/filter.acl
pihole:
container_name: pihole
image: pihole/pihole:latest
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
- "8089:80/tcp"
#- "443:443/tcp"
env_file:
- ./services/pihole/pihole.env
volumes:
- ./volumes/pihole/etc-pihole/:/etc/pihole/
- ./volumes/pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/
dns:
- 127.0.0.1
- 1.1.1.1
cap_add:
- NET_ADMIN
restart: unless-stopped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment