diff --git a/.github/workflows/build_dev.yml b/.github/workflows/build_dev.yml index eef3479..8b703ed 100755 --- a/.github/workflows/build_dev.yml +++ b/.github/workflows/build_dev.yml @@ -17,13 +17,6 @@ jobs: username: ${{ secrets.DOCKER_USER }} password: ${{ secrets.DOCKER_ACCESS_TOKEN }} - - name: Login to GitHub Container Registry - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GHCR_ACCESS_TOKEN }} - - name: Set up variables run: | VER=$(cat ./docker-build/VERSION) @@ -36,18 +29,15 @@ jobs: uses: docker/setup-buildx-action@v3 - name: Build and push - uses: docker/build-push-action@v6 + uses: docker/build-push-action@v2 with: context: ./docker-build file: ./docker-build/Dockerfile platforms: | - linux/amd64 linux/arm/v7 linux/arm64 - linux/riscv64 + linux/amd64 push: true tags: | ${{ secrets.DOCKER_USER }}/pihole-unbound-hyperlocal:${{ env.VERSION }}-dev ${{ secrets.DOCKER_USER }}/pihole-unbound-hyperlocal:dev - ghcr.io/${{ secrets.DOCKER_USER }}/pihole-unbound-hyperlocal:${{ env.VERSION }}-dev - ghcr.io/${{ secrets.DOCKER_USER }}/pihole-unbound-hyperlocal:dev diff --git a/.github/workflows/build_main.yml b/.github/workflows/build_main.yml index e59c43d..d495fd9 100755 --- a/.github/workflows/build_main.yml +++ b/.github/workflows/build_main.yml @@ -17,13 +17,6 @@ jobs: username: ${{ secrets.DOCKER_USER }} password: ${{ secrets.DOCKER_ACCESS_TOKEN }} - - name: Login to GitHub Container Registry - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GHCR_ACCESS_TOKEN }} - - name: Set up variables run: | VER=$(cat ./docker-build/VERSION) @@ -36,18 +29,15 @@ jobs: uses: docker/setup-buildx-action@v3 - name: Build and push - uses: docker/build-push-action@v6 + uses: docker/build-push-action@v2 with: context: ./docker-build file: ./docker-build/Dockerfile platforms: | - linux/amd64 linux/arm/v7 linux/arm64 - linux/riscv64 + linux/amd64 push: true tags: | ${{ secrets.DOCKER_USER }}/pihole-unbound-hyperlocal:${{ env.VERSION }} ${{ secrets.DOCKER_USER }}/pihole-unbound-hyperlocal:latest - ghcr.io/${{ secrets.DOCKER_USER }}/pihole-unbound-hyperlocal:${{ env.VERSION }} - ghcr.io/${{ secrets.DOCKER_USER }}/pihole-unbound-hyperlocal:latest diff --git a/README.md b/README.md index 4580f7e..31a4f37 100755 --- a/README.md +++ b/README.md @@ -16,16 +16,15 @@ > Read https://github.com/pi-hole/docker-pi-hole > [!tip] -> Firstly pull the new image with `docker pull ghcr.io/sujiba/pihole-unbound-hyperlocal:latest`. -> Next stop the old container with `docker compose down`. -> Follow the steps described under [First startup](#first-startup). -> For the upgrade transition you're going to have two folders +> Firstly pull the new image with `docker pull sujiba/pihole-unbound-hyperlocal:2025.03.0`. +> Then stop the old container. +> Follow the steps described bellow. For the transition you're going to have two folders > - old: pihole-unbound-hyperlocal > - new: pihole-unbound-hyperlocal-v6 > -> You can delete the old folder if everything is up and running. +> When everything is running, you can delete the old folder. -## Overview +## Overview - [Pihole + Unbound + Hyperlocal](#pihole--unbound--hyperlocal) - [Overview](#overview) @@ -68,7 +67,7 @@ cp example.pihole.env pihole.env vi pihole.env # Change the ports if you're running a reverse proxy on ports 80 and 443 -vi docker-compose.yml +vi compose.yml ``` Start the container diff --git a/docker-compose.yml b/compose.yml similarity index 91% rename from docker-compose.yml rename to compose.yml index 6b87f61..9037d2d 100755 --- a/docker-compose.yml +++ b/compose.yml @@ -2,8 +2,8 @@ # More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/ services: pihole-unbound: - # You can also use latest | yyyy.mm.x | dev | yyyy.mm.x-dev - image: ghcr.io/sujiba/pihole-unbound-hyperlocal:latest + # You can also use latest + image: sujiba/pihole-unbound-hyperlocal:2025.03.0 container_name: pihole-unbound hostname: raspi-01 ports: diff --git a/docker-build/Dockerfile b/docker-build/Dockerfile index 890f489..5d5adda 100755 --- a/docker-build/Dockerfile +++ b/docker-build/Dockerfile @@ -1,5 +1,5 @@ # Get the latest Pi-hole version -FROM pihole/pihole:2025.06.2 +FROM pihole/pihole:2025.03.0 # Install necessary programs without repository caching RUN apk upgrade --no-cache && \ @@ -23,4 +23,4 @@ RUN install -o unbound -g unbound -Dm755 -d /var/log/unbound # Add unbound start up script COPY --chmod=0755 unbound-entrypoint.sh /usr/bin/unbound-entrypoint.sh -ENTRYPOINT ["unbound-entrypoint.sh"] +ENTRYPOINT ["unbound-entrypoint.sh"] \ No newline at end of file diff --git a/docker-build/VERSION b/docker-build/VERSION index ce34564..18caec7 100755 --- a/docker-build/VERSION +++ b/docker-build/VERSION @@ -1 +1 @@ -2025.06.2 \ No newline at end of file +2025.03.0 \ No newline at end of file diff --git a/example.pihole.env b/example.pihole.env index a073cdb..72c1eaf 100755 --- a/example.pihole.env +++ b/example.pihole.env @@ -22,6 +22,14 @@ FTLCONF_dns_upstreams=127.0.0.1#5335 # Validate DNS replies using DNSSEC? FTLCONF_dns_dnssec = true +# On which domain is the web interface served? +# Default value is pi.hole +# FTLCONF_webserver_domain=pihole-01.int.exmample.com + # Theme used by the Pi-hole web interface # default-dark | default-darker | default-light | high-contrast | high-contrast-dark | default-auto | lcars FTLCONF_webserver_interface_theme=default-dark + +# Which temperature unit should be used for temperatures processed by FTL? +# C | F | K +FTLCONF_webserver_api_temp_unit=C