Template Request: Rybbit.io

chandrika
EMPLOYEE

23 days ago

Rybbit is an open-source, privacy-friendly alternative to Google Analytics offering cookieless web and product analytics with real-time dashboards and metrics.

This bounty will be paid out when:

  • A high-quality Rybbit Railway template is presented

  • All potential template feedback has been incorporated

  • All requirements are met and tested

Template requirements:

  • Multi-service deployment including: Rybbit backend, frontend, ClickHouse database, and PostgreSQL database

  • Volume-backed storage for both databases to preserve analytics data across redeploys

  • Service dependencies should be correctly configured with proper startup order and health checks

  • Environment variables properly configured for Railway domains and internal services should use the private network to communicate

  • Template should expose the Rybbit web interface for users to access analytics dashboards

A few resources to get you started:

$150 Bounty

8 Replies

23 days ago

I'm working on a Rybbit template

Though it seems Rybbit didn't implement CLICKHOUSE_USER as a configuration meaning if the Clickhouse database has authentication then it won't work with Rybbit because Rybbit doesn't read the CLICKHOUSE_USER variable

I notice there is a pull request open for this on Rybbit's GitHub, so my choice is between providing a template with an unsecure Clickhouse database or waiting for a merge on the PR, and I believe the latter is a better choice

Other than this hiccup, my Rybbit template is pretty much completed


17 days ago

Perhaps that is okay as long as you can set up ClickHouse to use the default username; then you can have a secure ClickHouse instance.


17 days ago

Yea that's a good idea but unfortunately it errors saying "Invalid URL" if a password is provided but no username so even if I have the db username set as the default it'll still error due to the way the client forms the connection URL


12 days ago

I'll see if I can somehow cirumvent this issue if the PR hasn't been merged by the time I'm done with my exam (Friday) cause it doesn't seem like the owner of Rybbit looks at their PRs


6 days ago

It seems the maintainer of Rybbit does check their issues sometimes so I made an issue regarding it and mentioned the PR, but if it still doesn't get merged soon then I'll explore other options, sorry that this is taking so long I just don't want to push a template with an unauthenticated ClickHouse database


6 days ago

Sounds good!


6 days ago

Alright I ended up just forking the repo to fix it myself, though this opened up so many more issues. It seems despite having the backend and client as seperate images its not really setup to be deployed seperately, I imagine it was created assuming it would be deployed in a VPS.. There's a lot of hard coded configurations and such that assumes the two are deployed to the same environment which I had to fix so this template was a lot more of a pain than I thought it would have been. Also I'm pretty sure their frontend image doesn't use runtime env variables meaning its literally unusable because its not configurable

At least I finally finished though, the template is live at: https://railway.com/deploy/rybbit (Let me know if you guys need anything else added)

The client and backend deploys from a fork I made of the original Rybbit repo, I don't think I'd have had a choice anyway due to the above issues I mentioned, I'll keep an eye on the repo and see whether Rybbit ever fixes up their configuration issues so I can potentially move back to the official images


6 days ago

You know something is difficult to run when your inbox looks like this after

Attachments