Deploy Beaver Habit Tracker
Self-hosted habit tracker with streaks, notes and a generated admin login
Beaver Habit Tracker
Just deployed
/app/.user
Deploy and Host Beaver Habit Tracker on Railway
Beaver Habit Tracker is a self-hosted, open-source habit tracker (BSD-3-Clause). You tick off habits for each day, see streaks and monthly heatmaps, add daily notes, group habits with tags, and export or import everything as JSON. It works well on phones as an installable web app and has a REST API.
About Hosting Beaver Habit Tracker
This template deploys one service, built from a public GitHub repo that wraps the official daya0576/beaverhabits:0.10.1 image, pinned by digest. Data lives in SQLite on a Railway volume, so it survives redeploys and restarts. You enter one value, your email. On first boot the app creates your account with a generated password, and sign-up is then closed, so nobody else can register on your public URL. Login tokens are signed with a generated secret instead of upstream's public default. A /health check gates each deploy, and an unexpected stop exits non-zero so Railway restarts it. It uses about 160 MB of RAM and fits Railway's Free plan.
Common Use Cases
- Track daily habits (exercise, reading, medication) with streaks and history
- Keep a private, ad-free habit log on your own server instead of a SaaS app
- Log habits from scripts, shortcuts or a native client through the REST API
Dependencies for Beaver Habit Tracker Hosting
- A Railway volume for the SQLite database (
/app/.user), included in the template - Your email address, used as the login for the account created on first boot
Deployment Dependencies
- Beaver Habit Tracker source and docs: https://github.com/daya0576/beaverhabits
- Release v0.10.1: https://github.com/daya0576/beaverhabits/releases/tag/v0.10.1
- Environment variables: https://github.com/daya0576/beaverhabits/wiki/Environment-variables
- Template repo (Dockerfile, start script, changelog): https://github.com/aalfath/beaverhabits-railway-template
Implementation Details
Services and variables:
- Beaver Habit Tracker: the web app and API on port 8080, with the volume at
/app/.user. ADMIN_EMAIL(you enter it): the email you sign in with.ADMIN_PASSWORD(generated): your password. Read it in the service's Variables tab. To change it, edit the variable and redeploy.JWT_SECRET(generated): signs login tokens. Session and reset-token secrets are derived from it.
After deploy: open the service's public URL, sign in with ADMIN_EMAIL and ADMIN_PASSWORD, then replace the example habits with your own. To let other people sign up, add the variable MAX_USER_COUNT with the total number of accounts allowed and redeploy. Anyone who finds the URL can then register until that limit is reached. Optional settings such as TIME_ZONE, FIRST_DAY_OF_WEEK or SMTP for password-reset emails are listed in the upstream wiki and can be added as variables.
Updates: the service builds from aalfath/beaverhabits-railway-template. When we bump the version there, Railway shows you an "update available" notice. Each change is listed in the repo's CHANGELOG.md, and your data stays on the volume.
Why Deploy Beaver Habit Tracker on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying Beaver Habit Tracker on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
Beaver Habit Tracker
aalfath/beaverhabits-railway-templateADMIN_EMAIL
Email for your Beaver Habit Tracker account, created on first boot. You sign in with it.
