net/pihole/Dockerfile

31 lines
1.4 KiB
Docker
Executable File

FROM pihole/pihole:latest
RUN echo "addn-hosts=/mnt/lan.list" >> /etc/dnsmasq.d/02-lan.conf
#RUN echo "192.168.0.86 vpntor.scratch.home" >> /mnt/lan.list \
# && echo "192.168.0.86 syncthing.scratch.home" >> /mnt/lan.list \
# && echo "192.168.0.86 plex.scratch.home" >> /mnt/lan.list \
# && echo "192.168.0.86 firefly.scratch.home" >> /mnt/lan.list \
# && echo "192.168.0.86 firefly2.scratch.home" >> /mnt/lan.list \
# && echo "192.168.0.86 rssmon2.scratch.home" >> /mnt/lan.list \
# && echo "192.168.0.86 rssmon.scratch.home" >> /mnt/lan.list \
# && echo "192.168.0.86 redirector.scratch.home" >> /mnt/lan.list \
# && echo "192.168.0.86 ytubespdrun.scratch.home" >> /mnt/lan.list \
# && echo "192.168.0.86 vpntorfeed.scratch.home" >> /mnt/lan.list \
# && echo "192.168.0.86 stuncaddsies.scratch.home" >> /mnt/lan.list \
# && echo "192.168.0.86 stuncaddsiesi.scratch.home" >> /mnt/lan.list \
# && echo "192.168.0.86 fproxy.scratch.home" >> /mnt/lan.list \
RUN echo 'nameserver 127.0.0.1' >> /etc/resolv.conf \
&& echo 'nameserver 1.1.1.1' >> /etc/resolv.conf \
&& echo 'nameserver 8.8.8.8' >> /etc/resolv.conf \
&& echo 'nameserver 8.8.4.4' >> /etc/resolv.conf
RUN echo "address=/scratch.com/192.168.0.86" >> /etc/dnsmasq.d/03-wildlan.conf
ENV WEB_PORT=8888
ENV DNSMASQ_LISTENING=all
ENV WEBPASSWORD=letme123in
ENV ServerIP=192.168.0.86
ENV DNS1=1.1.1.1
ENV DNS2=8.8.8.8