Add TB_DATA / TB_DATA_ROOT to choose depot storage

The depot mount is now ${TB_DATA:-traildepot} (rootless) and
${TB_DATA_ROOT:-traildepot} (root). The default keeps the named volume;
a host path (containing a "/") switches to a bind mount.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
tajniak81andClaude Opus 5.5 committed 2026-11-22 11:45:05 +01:00
1 parent c370bfdc5b
commit 8636d130a5
4 files changed
+20 -3

No files matched your search

+11
View File
@@ -16,6 +16,17 @@ TB_PORT=4000
# Port for the root variant (only used with docker-compose.root.yml)
TB_PORT_ROOT=4000
# Where the depot (databases, config, uploads, secrets, backups) is stored.
# Either a Docker named volume (default `traildepot`, one per Compose project)
# or a host path for a bind mount — a path must contain a `/`, e.g. ./traildepot.
# With a bind mount the host folder must be writable by the container user
# (rootless) and hides the baked-in auth UI — see README › Data persistence.
TB_DATA=traildepot
# Depot location for the root variant (only used with docker-compose.root.yml).
# Use a different host path than TB_DATA so the two stacks don't share a depot.
TB_DATA_ROOT=traildepot
# Public URL TrailBase is reached at (e.g. https://api.example.com).
# Needed for valid links in auth emails and for OAuth redirects. Leave blank for local use.
TB_PUBLIC_URL=