mirror of
https://github.com/tanrax/maza-ad-blocking.git
synced 2024-11-22 15:15:41 +01:00
Compare commits
No commits in common. "ac9fe2a3df0c0f2f0de2585a3a2490fa7526248d" and "a592716528e89614bae1a4332cd7bac0b54c5a17" have entirely different histories.
ac9fe2a3df
...
a592716528
@ -349,8 +349,7 @@ ssh customer@andros.dev -p 5555
|
|||||||
|
|
||||||
## 💬 Get Help or talk with the community
|
## 💬 Get Help or talk with the community
|
||||||
|
|
||||||
- [IRC: Libera #maza-ad-blocking](ircs://irc.libera.chat:6697/maza-ad-blocking)
|
[Jabber/XMPP](xmpp:maza-ad-blocking@groups.im.andros.dev/?join)
|
||||||
- [Jabber/XMPP](xmpp:maza-ad-blocking@groups.im.andros.dev/?join)
|
|
||||||
|
|
||||||
## 🍓 CREATE YOUR OWN PI-HOLE SERVER WITH MAZA
|
## 🍓 CREATE YOUR OWN PI-HOLE SERVER WITH MAZA
|
||||||
|
|
||||||
|
@ -1,35 +0,0 @@
|
|||||||
# Dockerfile
|
|
||||||
FROM debian:slim
|
|
||||||
|
|
||||||
# Set environment variables
|
|
||||||
ENV URL_DNS_LIST_CUSTOM=""
|
|
||||||
ENV MAZA_DIR="/etc/maza"
|
|
||||||
ENV MAZA_SCRIPT="/usr/local/bin/maza"
|
|
||||||
|
|
||||||
# Install dependencies
|
|
||||||
RUN apt-get update && apt-get install -y \
|
|
||||||
dnsmasq \
|
|
||||||
curl \
|
|
||||||
bash \
|
|
||||||
cron \
|
|
||||||
&& apt-get clean \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
# Add the maza script
|
|
||||||
COPY maza $MAZA_SCRIPT
|
|
||||||
RUN chmod +x $MAZA_SCRIPT
|
|
||||||
|
|
||||||
# Configure dnsmasq
|
|
||||||
RUN mkdir -p "$MAZA_DIR" \
|
|
||||||
&& echo "conf-file=$MAZA_DIR/dnsmasq.conf" >> /etc/dnsmasq.conf
|
|
||||||
|
|
||||||
# Configure cron to update the maza list daily
|
|
||||||
RUN echo "@daily $MAZA_SCRIPT update" >> /etc/cron.d/maza-cron \
|
|
||||||
&& chmod 0644 /etc/cron.d/maza-cron \
|
|
||||||
&& crontab /etc/cron.d/maza-cron
|
|
||||||
|
|
||||||
# Expose necessary ports
|
|
||||||
EXPOSE 53/udp 53/tcp 67/udp
|
|
||||||
|
|
||||||
# Start dnsmasq and cron
|
|
||||||
CMD service cron start && dnsmasq -k
|
|
@ -1,9 +0,0 @@
|
|||||||
# EXPERIMENTAL!
|
|
||||||
|
|
||||||
## This is a new feature and still under development. Use at your own risk.
|
|
||||||
|
|
||||||
Download `compose.yaml` and `Dockerfile` to your project directory.
|
|
||||||
|
|
||||||
```sh
|
|
||||||
docker compose up -d --build
|
|
||||||
```
|
|
@ -1,13 +0,0 @@
|
|||||||
services:
|
|
||||||
maza_dns:
|
|
||||||
build: .
|
|
||||||
container_name: maza_dns
|
|
||||||
environment:
|
|
||||||
#- URL_DNS_LIST_CUSTOM="https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts"
|
|
||||||
ports:
|
|
||||||
- "53:53/udp"
|
|
||||||
- "53:53/tcp"
|
|
||||||
- "67:67/udp"
|
|
||||||
volumes:
|
|
||||||
- maza_data:/etc/maza
|
|
||||||
restart: unless-stopped
|
|
Loading…
Reference in New Issue
Block a user