bitvora / wot-relay

archiving every note in your web of trust
65 stars 24 forks source link

feat: update Dockerfile, docker-compose and add Tor support for relay service #5

Closed HolgerHatGarKeineNode closed 2 months ago

HolgerHatGarKeineNode commented 2 months ago

With the PR https://github.com/bitvora/wot-relay/pull/4 we can improve other things in ENV, but this way the container takes the project files in the root folder without having to make a git clone.

STATIC_PATH="templates/static’

seems to have been missing in the .env.example file, because I had an error when starting without this specification.

This commit updates the Dockerfile to use a more docker-friendly approach. Instead of cloning the repository inside the Dockerfile, it now copies the files from the host. It also sets some fixed environment variables and uses a .env file for the rest.

The docker-compose.yml file now uses an .env file for more convenient environment variable management. It also maps volumes to the host, allowing you to change the paths of the db folder and templates folder.

The README.md has been updated with new instructions reflecting these changes. It now includes instructions for running the Docker container in the foreground or background, and for updating the relay.

HolgerHatGarKeineNode commented 2 months ago

feat: add Tor support for relay service

Add Tor support for the relay service in the docker-compose file. Also, rename the service from wot-relay to relay. Add a new torrc configuration file and a .gitignore file in the tor/data directory to prevent sensitive data from being tracked. Also, create a new docker-compose.tor.yml file for Tor-specific configurations.