Created
February 21, 2019 02:36
-
-
Save TomFaulkner/9c9f2fd785542947505a3204ddde1e69 to your computer and use it in GitHub Desktop.
Docker Compose for home server
This file contains 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: "3" | |
services: | |
pihole: | |
container_name: pihole | |
image: pihole/pihole:latest | |
ports: | |
- "80:80/tcp" | |
- "443:443/tcp" | |
- "192.168.1.21:67:67/udp" | |
- "192.168.1.21:53:53/udp" | |
- "192.168.1.21:53:53/tcp" | |
environment: | |
ServerIP: "192.168.1.28" | |
WEBPASSWORD: "piholesecure1" | |
DNS1: "1.1.1.1" | |
DNS2: "1.0.0.1" | |
volumes: | |
- "pihole-etc:/etc/pihole/" | |
- "pihole-dnsmasq.d:/etc/dnsmasq.d/" | |
- "pihole-log:/var/log/" | |
network_mode: bridge | |
restart: unless-stopped | |
plex: | |
container_name: plex | |
image: linuxserver/plex | |
ports: | |
- "192.168.1.21:32400:32400/tcp" | |
- "192.168.1.21:34200:32400/udp" | |
- "192.168.1.21:32469:32469/tcp" | |
- "192.168.1.21:32469:32469/udp" | |
- "192.168.1.21:5353:5353/udp" | |
- "192.168.1.21:1900:1900/udp" | |
environment: | |
uid: 1000 | |
gid: 1000 | |
groups: 1000 | |
VERSION: latest | |
TZ: America/Chicago | |
volumes: | |
- "/nyu/plex/config:/config" | |
- "/nyu/videos/tv:/data/tv" | |
- "/nyu/videos/movies:/data/movies" | |
network_mode: host | |
restart: unless-stopped | |
samba: | |
container_name: samba | |
image: dperson/samba:latest | |
environment: | |
- USERID=1000 | |
- GROUPID=1000 | |
ports: | |
- "139:139/tcp" | |
- "445:445/tcp" | |
- "137:137/udp" | |
- "138:138/udp" | |
- "139:139/udp" | |
volumes: | |
- "/nyu/videos:/mnt/videos:ro" | |
- "/nyu/samba_shares/windows:/mnt/windows:ro" | |
- "/nyu/games:/mnt/games:ro" | |
command: -s "videos;/mnt/videos" -s "windows;/mnt/windows" -s "games;/mnt/games" -n -S | |
network_mode: host | |
restart: unless-stopped | |
volumes: | |
pihole-etc: | |
pihole-dnsmasq.d: | |
pihole-log: | |
networks: | |
private: | |
vlan: | |
driver: macvlan | |
driver_opts: | |
parent: enp8s0 | |
ipam: | |
config: | |
- subnet: 192.168.1.0/24 | |
This file contains 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
On Ubuntu for pihole to work: | |
Add the following to /etc/systemd/resolved.conf | |
nameserver=127.0.0.1 | |
DNSStubListener=no | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment