---
title: "Deploy Dawarich"
description: "Self-hosted Google Timeline alternative: location history on a map"
category: "Other"
url: https://railway.com/deploy/dawarich-2
---

# Deploy Dawarich

Self-hosted Google Timeline alternative: location history on a map

**[Deploy Dawarich on Railway](https://railway.com/template/dawarich-2)**

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

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

## Template content

### Redis https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg

- **Image:** redis:8.2
- **Start command:** `/bin/sh -c "rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH"`

### Dawarich https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/dawarich.png

- **Source:** https://github.com/aalfath/dawarich-railway-template
- **Health check:** /api/v1/health
- **Public domain:** Yes

### PostGIS https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/postgresql.png

- **Source:** https://github.com/aalfath/dawarich-railway-template

## Documentation

# Deploy and Host Dawarich on Railway

Dawarich is a self-hosted, open-source alternative to Google Timeline (Location History). It records where you have been from your phone or imports, and shows it on a map with trips, visits, visited countries and cities, and yearly stats. Your location data stays in your own database.

## About Hosting Dawarich

This template deploys Dawarich 1.23.0 with everything it needs: the Dawarich web app with its Sidekiq background worker embedded in the same service, PostGIS (PostgreSQL 17 with PostGIS 3.7) and Redis. Each service builds or runs from a pinned version and keeps its data on its own Railway volume. You only enter the email of the first admin. On the first boot Dawarich waits for PostGIS, runs its migrations, creates your admin account with a generated password and loads country and time-zone data, which takes about two minutes. After that, sign in on the public URL and connect a tracking app.

## Common Use Cases

* Keep a private, long-term record of your location history instead of Google Timeline
* Import Google Takeout, GPX, GeoJSON or OwnTracks history and explore it on a map
* Track trips and visits live from your phone with the Dawarich, OwnTracks or Overland apps

## Dependencies for Dawarich Hosting

* PostgreSQL with PostGIS (included, PostgreSQL 17 + PostGIS 3.7)
* Redis (included, Railway's Redis)

### Deployment Dependencies

* Dawarich source and releases: https://github.com/Freika/dawarich/releases
* Dawarich self-hosting docs: https://dawarich.app/docs/intro
* Environment variables: https://dawarich.app/docs/self-hosting/environment-variables/
* Template repository: https://github.com/aalfath/dawarich-railway-template

### Implementation Details

Services in this template:

* **Dawarich**: the Rails web app on the public domain, with Sidekiq embedded for imports, reverse geocoding and stats. Health check `/api/v1/health`. Uploads and exports live on a volume at `/var/app/storage`.
* **PostGIS**: PostgreSQL 17 with PostGIS, private network only, data on a volume.
* **Redis**: job queue and cache, private network only, data on a volume.

After deploy:

1. Open the Dawarich service's Variables tab and copy `DAWARICH_ADMIN_PASSWORD`.
2. Sign in at your Railway URL with `DAWARICH_ADMIN_EMAIL` and that password, then change the password in your account settings.
3. Find your API key in Settings and use it in the Dawarich iOS app, OwnTracks or Overland, or import your history under Imports.

The upstream demo account with a fixed password is never created, and public sign-up stays off: the admin adds other users under Settings → Users. For a custom domain, add it to `APPLICATION_HOSTS` on the Dawarich service (comma separated). SMTP, OIDC sign-in and other options are optional variables described in the Dawarich environment variable docs.

Updates: every service builds from the template's GitHub repository. When a new Dawarich version is released there, Railway shows an "update available" notice and you choose when to apply it. Read the repository's CHANGELOG first, and back up the PostGIS volume before large version jumps, because Dawarich migrates its database on start.

## Why Deploy Dawarich 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 Dawarich 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)
- [Double Commander in your browser](https://railway.com/deploy/double-commander-in-your-browser) — The Double Commander file manager in the cloud, from any device

Open this page in a browser: https://railway.com/deploy/dawarich-2
