Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

(improvement) Add Railway one-click deploy for Community Edition

dillonstreator94dd1bbf74ae
diff --git a/README.md b/README.md
index 29362db26..5013ad38e 100644
--- a/README.md
+++ b/README.md
@@ -103,6 +103,10 @@ Prefer to run it yourself? Swetrix Community Edition (CE) ships the same core an
- **[Self-hosting guide →](https://docs.swetrix.com/selfhosting/how-to)**
+Don't want to manage a server? A community-maintained [Railway](https://railway.com) template deploys CE (frontend, API, Redis and ClickHouse) with an HTTPS URL in one click:
+
+[![Deploy on Railway](https://railway.com/button.svg)](https://railway.com/deploy/swetrix)
+
#### Cloud vs Community Edition
| | Swetrix Cloud | Swetrix Community Edition |
diff --git a/docs/content/docs/selfhosting/how-to.mdx b/docs/content/docs/selfhosting/how-to.mdx
index 0a9a40971..ec78dbe8b 100644
--- a/docs/content/docs/selfhosting/how-to.mdx
+++ b/docs/content/docs/selfhosting/how-to.mdx
@@ -10,6 +10,14 @@ The easiest way to get started with Swetrix is by [using our cloud service](http
</Callout>
+## One-click deploy
+
+If you'd rather not manage a server yourself, a community-maintained [Railway](https://railway.com) template provisions the frontend, API, Redis and ClickHouse, wires them together, and gives you an HTTPS URL:
+
+[![Deploy on Railway](https://railway.com/button.svg)](https://railway.com/deploy/swetrix)
+
+The template is built from the same images as the self-hosting repository, and its source is at [osbytes/template-swetrix](https://github.com/osbytes/template-swetrix). The rest of this page covers running Swetrix with Docker Compose on your own server.
+
## Prerequisites
To self-host Swetrix you need to have the following: