From 76049e3628babb2d304f154832c3311423bd8106 Mon Sep 17 00:00:00 2001 From: Ye Liu Date: Tue, 16 Dec 2025 12:32:11 -0500 Subject: [PATCH] Add trailbase template (#590) * Add trailbase * Add comment on mounting local directory * Update meta.json Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- blueprints/trailbase/docker-compose.yml | 24 +++ blueprints/trailbase/logo.svg | 194 ++++++++++++++++++++++++ blueprints/trailbase/template.toml | 8 + meta.json | 17 +++ 4 files changed, 243 insertions(+) create mode 100644 blueprints/trailbase/docker-compose.yml create mode 100644 blueprints/trailbase/logo.svg create mode 100644 blueprints/trailbase/template.toml diff --git a/blueprints/trailbase/docker-compose.yml b/blueprints/trailbase/docker-compose.yml new file mode 100644 index 00000000..a8067d86 --- /dev/null +++ b/blueprints/trailbase/docker-compose.yml @@ -0,0 +1,24 @@ +# IMPORTANT: The initial admin credentials will be printed in the logs after the container starts +# Access TrailBase Admin UI at: https://your-domain.com/_/admin (replace with your configured domain) + +version: "3.8" + +services: + trailbase: + image: trailbase/trailbase:latest + restart: unless-stopped + volumes: + - trailbase-data:/app/traildepot + # If you want to use a local directory instead, uncomment the line below and specify the path to your local + # directory. Make sure this directory is writable by the trailbase user (UID 1000) and the group (GID 1000) i.e. + # chown -R 1000:1000 /path/to/your/local/directory + # - /path/to/your/local/directory:/app/traildepot + healthcheck: + test: ["CMD", "curl", "--fail", "http://localhost:4000/api/healthcheck"] + interval: 30s + timeout: 10s + retries: 3 + +volumes: + # comment the line below if you specified a local directory in the volumes section of the trailbase service + trailbase-data: {} diff --git a/blueprints/trailbase/logo.svg b/blueprints/trailbase/logo.svg new file mode 100644 index 00000000..d2e0b8b0 --- /dev/null +++ b/blueprints/trailbase/logo.svg @@ -0,0 +1,194 @@ + + + + diff --git a/blueprints/trailbase/template.toml b/blueprints/trailbase/template.toml new file mode 100644 index 00000000..dbfe2a65 --- /dev/null +++ b/blueprints/trailbase/template.toml @@ -0,0 +1,8 @@ +[variables] +main_domain = "${domain}" + +[config] +[[config.domains]] +serviceName = "trailbase" +port = 4000 +host = "${main_domain}" diff --git a/meta.json b/meta.json index ee73ec65..8122e183 100644 --- a/meta.json +++ b/meta.json @@ -5640,6 +5640,23 @@ "tor" ] }, + { + "id": "trailbase", + "name": "TrailBase", + "version": "latest", + "description": "TrailBase is a blazingly fast, open-source application server with type-safe APIs, built-in WebAssembly runtime, realtime, auth, and admin UI built on Rust, SQLite & Wasmtime.", + "logo": "logo.svg", + "links": { + "github": "https://github.com/trailbase/trailbase", + "website": "https://trailbase.io/", + "docs": "https://trailbase.io/getting-started/install" + }, + "tags": [ + "backend", + "database", + "api" + ] + }, { "id": "triggerdotdev", "name": "Trigger.dev",