112 lines
2.2 KiB
YAML
112 lines
2.2 KiB
YAML
version: "3.9"
|
|
|
|
volumes:
|
|
pihole:
|
|
name: pihole
|
|
dnsmasq:
|
|
name: dnsmasq
|
|
samba-config:
|
|
name: samba-config
|
|
|
|
|
|
networks:
|
|
networking:
|
|
name: networking
|
|
external: false
|
|
home:
|
|
external: false
|
|
driver: macvlan
|
|
enable_ipv6: true
|
|
driver_opts:
|
|
parent: enp2s0
|
|
ipam:
|
|
config:
|
|
- subnet: 192.168.178.0/24
|
|
gateway: 192.168.178.1
|
|
ip_range: 192.168.178.2/29 # 2 - 6
|
|
- subnet: fd00::/64
|
|
gateway: fd00::de15:c8ff:feec:9960
|
|
ip_range: fd00::1/80
|
|
name: home
|
|
|
|
|
|
services:
|
|
pihole:
|
|
image: pihole/pihole
|
|
cap_add:
|
|
- NET_ADMIN
|
|
container_name: pihole
|
|
hostname: pihole
|
|
environment:
|
|
ServerIP: 192.168.178.2
|
|
ServerIPv6: fd00::2
|
|
TZ: "Europe/Berlin"
|
|
WEBPASSWORD: "lmaa,dw."
|
|
PIHOLE_DNS_: 192.168.178.3;192.168.178.3
|
|
VIRTUAL_HOST: pihole.lan
|
|
mac_address: d0:ca:ab:cd:ef:01
|
|
networks:
|
|
home:
|
|
ipv4_address: 192.168.178.2
|
|
ipv6_address: fd00::2
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
- "53:53/tcp"
|
|
- "53:53/udp"
|
|
restart: unless-stopped
|
|
volumes:
|
|
- pihole:/etc/pihole/
|
|
- dnsmasq:/etc/dnsmasq.d/
|
|
|
|
unbound:
|
|
image: mvance/unbound
|
|
container_name: unbound
|
|
hostname: unbound
|
|
networks:
|
|
home:
|
|
ipv4_address: 192.168.178.3
|
|
ipv6_address: fd00::3
|
|
ports:
|
|
- "53:53/tcp"
|
|
- "53:53/udp"
|
|
restart: always
|
|
|
|
# Must add "ntlm auth = yes" to global section in smb.conf
|
|
# adduser and smbpasswd have to be run
|
|
# Sample smb.conf is copied to repo.
|
|
samba:
|
|
image: gists/samba-server
|
|
container_name: samba
|
|
hostname: samba
|
|
networks:
|
|
- networking
|
|
ports:
|
|
- "137:137/udp"
|
|
- "138:138/udp"
|
|
- "139:139/tcp"
|
|
- "445:445/tcp"
|
|
environment:
|
|
TZ: Europe/Berlin
|
|
PASSWORD: lmaa,dw.
|
|
restart: unless-stopped
|
|
volumes:
|
|
- samba-config:/etc/samba
|
|
- /media/backup:/mnt
|
|
|
|
nfs:
|
|
image: erichough/nfs-server
|
|
container_name: nfs
|
|
hostname: nfs
|
|
privileged: true
|
|
networks:
|
|
- networking
|
|
ports:
|
|
- "2049:2049"
|
|
environment:
|
|
NFS_EXPORT_0: /nfs-share 192.168.178.0/24(rw,no_subtree_check)
|
|
volumes:
|
|
- /media/backup:/nfs-share
|
|
restart: unless-stopped
|
|
|