Files
tor-guard-relay/templates/cosmos-compose/cosmos-compose-guard.json
rE-Bo0t.bx1 5120d0d0e9 feat(v1.1.4): modernize templates, security, and build variants
This update refines the Tor relay configuration and build process:
- Security: Disables DirPort and adopts ciissversion:2 for ContactInfo.
- Performance: Adds IPv6 support and hardware acceleration options.
- Builds: Establishes Stable vs. Edge variants for better testing cycles.
- Tooling: Integrates nyx.config and cleans up legacy tags.
- Sync: Aligns cosmos-compose and docker-compose templates.
- Update retention policy: Keep last 7 versions

No breaking changes introduced.
2025-12-21 03:14:39 +08:00

67 lines
1.7 KiB
JSON

{
"minVersion": "0.16.0",
"services": {
"tor-guard-relay": {
"image": "r3bo0tbx1/onion-relay:latest",
"container_name": "tor-guard-relay",
"restart": "unless-stopped",
"network_mode": "host",
"environment": [
"TOR_RELAY_MODE=guard",
"TOR_NICKNAME=MyGuardRelay",
"TOR_CONTACT_INFO=admin@example.com",
"TOR_ORPORT=9001",
"TOR_DIRPORT=0",
"TOR_BANDWIDTH_RATE=50 MBytes",
"TOR_BANDWIDTH_BURST=100 MBytes"
],
"volumes": [
{
"type": "volume",
"source": "tor-guard-data",
"target": "/var/lib/tor"
},
{
"type": "volume",
"source": "tor-guard-logs",
"target": "/var/log/tor"
}
],
"security_opt": [
"no-new-privileges:true"
],
"cap_drop": [
"ALL"
],
"cap_add": [
"NET_BIND_SERVICE",
"CHOWN",
"SETUID",
"SETGID",
"DAC_OVERRIDE"
],
"healthcheck": {
"test": [
"CMD-SHELL",
"/usr/local/bin/healthcheck.sh"
],
"interval": "10m",
"timeout": "15s",
"start_period": "30s",
"retries": 3
},
"labels": {
"cosmos-stack": "TorGuardRelay",
"cosmos-stack-main": "tor-guard-relay",
"cosmos-description": "🛡️ Tor Guard Relay | ENV-based config",
"cosmos-icon": "https://raw.githubusercontent.com/r3bo0tbx1/tor-guard-relay/refs/heads/main/src/onion.png",
"cosmos-force-network-secured": "false",
"cosmos-version": "1.1.4"
}
}
},
"volumes": {
"tor-guard-data": {},
"tor-guard-logs": {}
}
}