Deploy TimeTracker
Self-hosted time tracking and PDF invoicing for freelancers and teams
TimeTracker
Just deployed
/data
Just deployed
/var/lib/postgresql/data
Deploy and Host TimeTracker on Railway
TimeTracker is an open-source (GPL-3.0) web app for tracking time and billing it. Freelancers and teams run timers or add entries by hand, organise work into clients, projects and tasks, and turn billable hours into PDF invoices. It also covers expenses, quotes, reports, Kanban boards and an optional client portal.
About Hosting TimeTracker
TimeTracker is a Flask app that stores its data in PostgreSQL and keeps settings, uploads and logos on disk. This template deploys two services: the TimeTracker app, built from our GitHub repo on the official ghcr.io/drytrix/timetracker:5.21.0 image pinned by digest, and a Railway PostgreSQL database. The app has a public HTTPS domain, a health check at /_ready and a volume at /data. On every start it waits for Postgres and runs database migrations. On first boot it creates the admin account with a generated password. There's nothing to fill in. Upstream's nginx, Redis, Ollama and monitoring add-ons are left out because Railway handles TLS, and the rest is optional.
Common Use Cases
- Freelancers tracking billable hours per client and project and sending PDF invoices
- Small agencies and teams logging time, reviewing timesheets and reporting on budgets
- Replacing a hosted time tracker such as Toggl or Harvest with a self-hosted one you control
Dependencies for TimeTracker Hosting
- PostgreSQL (included as a Railway service with its own volume)
- A Railway volume for
/data(installation settings, uploads, logos and the encryption key)
Deployment Dependencies
- TimeTracker source: https://github.com/DRYTRIX/TimeTracker
- Template repo (Dockerfile and start script): https://github.com/aalfath/timetracker-railway-template
- Official image:
ghcr.io/drytrix/timetracker
Implementation Details
Services
- TimeTracker: the web app on port 8080, with a public domain, a
/_readyhealth check and a volume at/data - Postgres: Railway PostgreSQL, which holds all time entries, projects, clients and invoices
After deploy
- Open the TimeTracker service's Variables tab and copy
ADMIN_PASSWORD. - Log in at your public URL as
adminwith that password, then change the password in your profile. A changed password is kept across redeploys. - Set your company details, timezone and currency in Admin → Settings. The open first-run wizard is switched off so no stranger can configure your instance first.
Optional settings, such as email (SMTP), OIDC/LDAP sign-in and a custom domain (set APP_BASE_URL and WTF_CSRF_TRUSTED_ORIGINS to https://YOUR-DOMAIN), are added as variables on the TimeTracker service. See upstream's docs.
Resources: the template was tested at 0.5 GB RAM / 1 vCPU per service. It uses about 230 MB idle and about 310 MB while generating an invoice PDF. The template uses two volumes (app and database), so it needs the Trial, Hobby or a higher plan, because the Free plan allows one volume per project.
Updates: Railway notifies you when the template repo moves to a new TimeTracker release. Each update pins the new version and digest and lists changes in CHANGELOG.md. Back up Postgres before you apply one; migrations run automatically on start.
Telemetry: the upstream image sends an anonymous install heartbeat (install ID, version, OS) to the TimeTracker project. Detailed analytics stay off unless an admin opts in.
Why Deploy TimeTracker 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 TimeTracker 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
