Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

feat(services): add 9router template (#11592)

Giovanni Santini661661c5f21c
diff --git a/public/svgs/9router.svg b/public/svgs/9router.svg
new file mode 100644
index 0000000000..a72e45bef3
--- /dev/null
+++ b/public/svgs/9router.svg
@@ -0,0 +1,11 @@
+<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <rect width="32" height="32" rx="6" fill="url(#gradient)"/>
+ <text x="16" y="24" font-family="system-ui, -apple-system, sans-serif" font-size="20" font-weight="700" fill="white" text-anchor="middle">9</text>
+ <defs>
+ <linearGradient id="gradient" x1="0" y1="0" x2="32" y2="32" gradientUnits="userSpaceOnUse">
+ <stop stop-color="#f97815"/>
+ <stop offset="1" stop-color="#c2590a"/>
+ </linearGradient>
+ </defs>
+</svg>
+
diff --git a/templates/compose/9router.yaml b/templates/compose/9router.yaml
new file mode 100644
index 0000000000..31b71a3ddd
--- /dev/null
+++ b/templates/compose/9router.yaml
@@ -0,0 +1,28 @@
+# documentation: https://github.com/decolua/9router
+# slogan: Free AI coding gateway. Routes Claude Code, Codex, Cursor, Cline, Copilot requests to 40+ LLM providers with auto-fallback and token savings.
+# category: ai
+# tags: ai, gateway, routing, coding, llm, providers
+# logo: svgs/9router.svg
+# port: 20128
+
+services:
+ 9router:
+ image: decolua/9router:0.5.65
+ volumes:
+ - '9router:/app/data'
+ environment:
+ - SERVICE_URL_9ROUTER_20128
+ - DATA_DIR=/app/data
+ - INITIAL_PASSWORD=${SERVICE_PASSWORDWITHSYMBOLS_PASSWORD}
+ - JWT_SECRET=${SERVICE_PASSWORDWITHSYMBOLS_64_JWTSECRET}
+ - API_KEY_SECRET=${SERVICE_PASSWORDWITHSYMBOLS_KEYSECRET}
+ - MACHINE_ID_SALT=${SERVICE_HEX_64_HMACSALT}
+ healthcheck:
+ test:
+ - CMD
+ - wget
+ - --spider
+ - 'http://127.0.0.1:20128/'
+ interval: 5s
+ timeout: 10s
+ retries: 5