26/07/2025

Installing NxFilter on Raspberry Pi 4 inside Docker

By snorlaxprime

It is a pain when you have to deal with sdcard failure of your home automation system. But that is what happened. So I have to rebuild my home automation again from scratch, but thankfully I have documented everything in my blog, so I just have to repeat the steps again to reproduce this. My old instruction is installing NxFilter directly to the main repository of Raspberry Pi. Given that I already have docker container installed, why not try to install the NxFilter in the docker as well. So here are the steps that I took to install it.

Step 1. Create Docker compose file

Using your favourite editor like nano, create the docker-compose.yaml

Save the file above

Step 2. Start and detach the container

Using the following command start and detach the contaiiner

Then check that the container have started up using the following command

You should be able to see the nxfilter container as shown in the following picture

Check the log to make sure that the NxFilter have started up using the following command

docker compose logs

you should see the following screen that shows NxFilter is currently downloading the Jahaslist

When it eventually finished you should see the line similar to the last line in the following screen shot showing that it is now listening on port 80 and 443.

Step 3. Login and Configure NxFilter

You should be able to point your browser to the following address

You should be presented with an admin login screen. The default username and password is admin, so you need to change it once you have logged in.

Happy filtering. Drop me a line if this helped you in any way, or if you have any questions.

Step 4. Updating the NxFilter

From time to time you will need to update to the latest version of Nx Filter the following steps will be useful to do so.

  • Run the new container with the same command as below
  • If using docker-compose: docker compose up -d
  • Make sure the container is running. docker ps
  • Check the container logs if GUI is not available. docker logs nxfilter
    • If using docker-compose: docker compose logs

Note: Reference https://github.com/DeepWoods/nxfilter-docker