torrust / torrust-compose Goto Github PK
View Code? Open in Web Editor NEWSample Docker Compose configurations for the Torrust Index
Home Page: https://torrust.com
Sample Docker Compose configurations for the Torrust Index
Home Page: https://torrust.com
There have been a lot of changes:
Relates to: torrust/torrust-website#114
There have been changes in the Torrust containers.
Torrust Index GUI compose config can be an initial template.
Relates to: torrust/torrust-tracker#324
See torrust/torrust-tracker#324 (comment)
See: #4 (comment)
Tracker:
TORRUST_TRACKER_CONFIG
TORRUST_TRACKER_PATH_CONFIG
Index:
TORRUST_INDEX_CONFIG
TORRUST_INDEX_PATH_CONFIG
I replaced TORRUST_INDEX_CONFIG_PATH
with TORRUST_INDEX_PATH_CONFIG
to follow your latest changes.
In this case those variables are not being used in the compose.yaml
file. I'm using the default location for the config files:
TORRUST_TRACKER_PATH_CONFIG=/etc/torrust/tracker/tracker.toml
TORRUST_INDEX_PATH_CONFIG=/etc/torrust/index/index.toml
Config env vars are set at runtime:
We have to remove TORRUST_INDEX_CONFIG_PATH
and TORRUST_TRACKER_CONFIG_PATH
from all bash scripts.
Originally posted by @josecelano in #4 (comment)
Relates to:
More changes related to the configuration have been merged in the Tracker and Index repos.
We have to update the Tracker and Index configuration files.
Tracker
[logging]
log_level = "info"
[core]
mode = "public"
Index
[tracker]
mode = "public"
Tracker
version = "2"
[logging]
#threshold = "off"
#threshold = "error"
#threshold = "warn"
threshold = "info"
#threshold = "debug"
#threshold = "trace"
[core]
listed = false
private = false
Index
version = "2"
[logging]
#threshold = "off"
#threshold = "error"
#threshold = "warn"
threshold = "info"
#threshold = "debug"
#threshold = "trace"
[tracker]
listed = false
private = false
NOTICE: Only changed are shown.
Relates to: torrust/torrust-index#670
These two config option in the Index TOML config file have been removed:
[auth]
email_on_signup = "optional"
[mail]
email_verification_enabled = false
We need to replace them with:
[registration]
[registration.email]
Relates to: torrust/torrust-index#631
After merging this Index PR, some breaking changes will be introduced in the Index config files.
We have to migrate the Index config files to the new version.
log_level = "info"
[website]
name = "Torrust"
[tracker]
api_url = "http://localhost:1212"
mode = "Public"
token = "MyAccessToken"
token_valid_seconds = 7257600
url = "udp://localhost:6969"
[net]
port = 3001
# Uncomment if you want to enable TSL for development
#[net.tsl]
#ssl_cert_path = "./storage/index/lib/tls/localhost.crt"
#ssl_key_path = "./storage/index/lib/tls/localhost.key"
[auth]
email_on_signup = "Optional"
max_password_length = 64
min_password_length = 6
secret_key = "MaxVerstappenWC2021"
[database]
connect_url = "sqlite://data.db?mode=rwc"
[mail]
email_verification_enabled = false
from = "[email protected]"
password = ""
port = 25
reply_to = "[email protected]"
server = ""
username = ""
[image_cache]
capacity = 128000000
entry_size_limit = 4000000
max_request_timeout_ms = 1000
user_quota_bytes = 64000000
user_quota_period_seconds = 3600
[api]
default_torrent_page_size = 10
max_torrent_page_size = 30
[tracker_statistics_importer]
port = 3002
torrent_info_update_interval = 3600
[logging]
log_level = "info"
[website]
name = "Torrust"
[tracker]
api_url = "http://localhost:1212"
mode = "public"
token = "MyAccessToken"
token_valid_seconds = 7257600
url = "udp://localhost:6969"
[net]
base_url = "http://localhost"
bind_address = "0.0.0.0:3001"
# Uncomment if you want to enable TSL for development
#[net.tsl]
#ssl_cert_path = "./storage/index/lib/tls/localhost.crt"
#ssl_key_path = "./storage/index/lib/tls/localhost.key"
[auth]
email_on_signup = "Optional"
secret_key = "MaxVerstappenWC2021"
[auth.password_constraints]
max_password_length = 64
min_password_length = 6
[database]
connect_url = "sqlite://data.db?mode=rwc"
[mail]
email_verification_enabled = false
from = "[email protected]"
reply_to = "[email protected]"
[mail.smtp]
port = 25
server = ""
[mail.smtp.credentials]
password = ""
username = ""
[image_cache]
capacity = 128000000
entry_size_limit = 4000000
max_request_timeout_ms = 1000
user_quota_bytes = 64000000
user_quota_period_seconds = 3600
[api]
default_torrent_page_size = 10
max_torrent_page_size = 30
[tracker_statistics_importer]
port = 3002
torrent_info_update_interval = 3600
Relates to: torrust/torrust-tracker#851
Env vars were renamed in the tracker. We have to apply those changes here.
Malfunctions due to the use of Macbook with Mac chips, this is due to the non-existence of images that are for Mac.
Chip: Apple M3 Max
Mac version: 14.4.1
Error while running "./bin/start.sh"
./bin/start.sh
[+] Running 3/5
⠙ mailcatcher Pulling 2.1s
✘ idx-fron Error context canceled 2.1s
✘ mysql Error context canceled 2.1s
⠙ tracker Pulling 2.1s
✘ idx-back Error context canceled 2.1s
no matching manifest for linux/arm64/v8 in the manifest list entries
In the droplet compose example the image proxy for torrent description is not working:
Values for database driver are now lowercase: sqlite3
Replace:
TORRUST_TRACKER_CONFIG_OVERRIDE_CORE__DATABASE__DRIVER=${TORRUST_TRACKER_CONFIG_OVERRIDE_CORE__DATABASE__DRIVER:-Sqlite3}
With:
TORRUST_TRACKER_CONFIG_OVERRIDE_CORE__DATABASE__DRIVER=${TORRUST_TRACKER_CONFIG_OVERRIDE_CORE__DATABASE__DRIVER:-sqlite3}
The tracker and Index config files have changed.
Tracker:
Index:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.