Skip to content

chrisbensch/docker-freenet

 
 

Repository files navigation

Note: work in progress

This is an unofficial docker image for Freenet.

The binaries used are from the official Freenet releases. You can verify that they are trustworthy by checking the sha256 of each and comparing it to the official release files.

Usage

Just pull the image by tag:

docker pull 5nafu/freenet

Then download the docker-compose.yml file found in the github repo, edit it to set the port and volume configuration the way you want it, then run it:

docker-compose -f docker-compose.yml up -d

Alternatively you can run the image directly:

docker run --name freenet -v $HOME/freenet/data:/data -v $HOME/freenet/config:/conf -p 127.0.0.1:8888:8888 -p 127.0.0.1:9481:9481 -p 12345:12345/udp -p 12346:12346/udp 5nafu/freenet

Afterward Freenet should be running, and you should be able to access fproxy on port 8888, either on the local machine or by connecting to it through an ssh tunnel:

ssh -L 8888:127.0.0.1:8888 -N user@dockerhost

By default Freenet is only accessible from localhost. This can be overwritten in the freenet.ini or via the environment variable allowedhosts:

docker run --env allowedhosts=192.168.0.0/24 ...

If you use docker-compose, see the example in the attached docker-compose.yml.

Freenet opens two UDP Ports for communication with the outside world. By default this image uses 12345 & 123456, which can be overwritten by setting the environment variables darknetport and opennetport to the desired port number (see above and in the docker-compose.yml).

Details

This image ships a set of Freenet binaries inside the image and properly separates them from user data, so that the image can be torn down and updated without risk of losing your configuration or identities (fms etc).

This image has Freenet auto-update disabled in favor of updating through Docker.

It is recommended that you continue to use it that way rather than turning on auto-update, as there will be runtime changes that the Docker image will account for that may not be handled otherwise.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 79.1%
  • Shell 20.9%