Railway

Deploy habittrove

HabitTrove is a habit tracker that rewards completed habits with coins

Deploy habittrove

Just deployed

/app/data

Deploy and Host HabitTrove on Railway

About Hosting

HabitTrove is a self-hosted, open-source, gamified habit tracking application built with Next.js. It helps users create habits, track progress, earn coins for completions, and redeem those coins against a custom wishlist of rewards.

The official Docker image stores data in local JSON files under the container filesystem (/app/data) and creates rotating backups in /app/backups. On Railway, this template deploys the upstream image directly and mounts persistent storage to /app/data, which keeps user data and application state across restarts and redeploys.

Why Deploy

  • Gamified habit tracking — Turn daily habit consistency into a reward loop with coins and wishlist redemptions.
  • Simple architecture — One service, one Docker image, no external database required.
  • Upstream-first deployment — Uses dohsimpson/habittrove:latest without unnecessary command overrides.
  • Persistent app state — Railway volume mount at /app/data preserves habits, users, and settings.
  • PWA-ready UI — Mobile-friendly interface with progressive web app behavior from upstream.

Common Use Cases

  • Personal habit dashboard — Track routines (exercise, reading, journaling) with streaks and rewards.
  • Family accountability board — Run one instance for multiple users sharing progress and goals.
  • Private self-hosted alternative — Keep your habit and reward data under your own infrastructure.
  • Demo-ready setup — Optionally enable demo mode behavior via DEMO environment variable.

Dependencies for Deployment

Deployment Dependencies

DependencyDetails
Docker Imagedohsimpson/habittrove:latest (official upstream image)
Exposed Port3000
Persistent VolumeRequired at /app/data (stores JSON data files and app state)
PORTRequired — set to 3000 so Railway routes public traffic correctly
AUTH_SECRETRequired — cryptographic secret used by authentication/session logic
DEMOOptional — enables demo-mode behavior when set to a non-empty value
External DatabaseNone
Start Command OverrideNot required (uses image default CMD ["node","server.js"])

Template Content

More templates in this category

View Template
Foundry Virtual Tabletop
A Self-Hosted & Modern Roleplaying Platform

Lucas
View Template
(v1) Simple Medusa Backend
Deploy an ecommerce backend and admin using Medusa

Shahed Nasser
View Template
peppermint
Docker-compose port for peppermint.sh

HamiltonAI