---
title: "Deploy TimeTracker"
description: "Self-hosted time tracking and PDF invoicing for freelancers and teams"
category: "Other"
url: https://railway.com/deploy/timetracker
---

# Deploy TimeTracker

Self-hosted time tracking and PDF invoicing for freelancers and teams

**[Deploy TimeTracker on Railway](https://railway.com/template/timetracker)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/timetracker/manifest.json

- **Creator:** Agaz Self-Host
- **Category:** Other

## Template content

### TimeTracker https://raw.githubusercontent.com/DRYTRIX/TimeTracker/v5.21.0/desktop/assets/icon.png

- **Source:** https://github.com/aalfath/timetracker-railway-template
- **Health check:** /_ready
- **Public domain:** Yes

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:18

## Documentation

# 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 `/_ready` health check and a volume at `/data`
* **Postgres**: Railway PostgreSQL, which holds all time entries, projects, clients and invoices

**After deploy**

1. Open the TimeTracker service's **Variables** tab and copy `ADMIN_PASSWORD`.
2. Log in at your public URL as `admin` with that password, then change the password in your profile. A changed password is kept across redeploys.
3. 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.



## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — Self-hosted virtual tabletop for role-playing games (license required)
- [Wiki-Go](https://railway.com/deploy/wiki-go) — Flat-file Markdown wiki in Go: no database, generated admin login

Open this page in a browser: https://railway.com/deploy/timetracker
