3 Commits

Author SHA1 Message Date
fsociety
6372f55a7b 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.
2024-09-07 16:37:58 +02:00
fsociety
ca8dde54f1 feat: update Dockerfile, docker-compose and README for better Docker usage
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.
2024-09-07 15:57:21 +02:00
HolgerHatGarKeineNode
338442006b
Add Dockerfile and Docker Compose for wot-relay setup
Introduced a Dockerfile to build the wot-relay application using the Golang image based on Debian Bookworm.

Configured the working directory, cloned the repository, downloaded Go module dependencies, set environment variables, and built the Go application.

Exposed port 3334 and set the command to run the executable.

Added a Docker Compose file for streamlined service deployment, including environment variable configurations, volume binding for the database directory, and port mapping.
2024-09-06 17:49:30 +00:00