selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Dawarich logo

Self-host Dawarich

1.22.0

Location history tracker replacing Google Timeline

ReleaseOpen SourceAGPL-3.0
Docker ComposeCompose file & guide
docker compose up -d
Updated6 hours ago
LanguageRuby
Setup difficultyModerate
MobileNative app
Stars
10 848
CPU
1 CPU core
RAM
2GB RAM
Storage
At least 10GB disk space
Ports
3000 (Dawarich web application (Rails/Puma), mapped as ${DAWARICH_APP_PORT:-3000}:3000), 9394 (Prometheus metrics exporter, when PROMETHEUS_EXPORTER_ENABLED is true)
Docker
freikin/dawarich
Map view with the location history layersTimeline view of a day of recorded locationsInsights page with patterns from the location historyFamily page showing shared locations of membersStatistics overview of travelled distance and placesTrips page listing travels between two points in time

What is Dawarich?

Dawarich alternatives

All self-hosted alternatives to Google Timeline → All self-hosted alternatives to Life360 → All self-hosted alternatives to OwnTracks →

Should you self-host Dawarich?

Dawarich scores 73/100 on selfhost.directory (how scoring works) and ranks #1 of 6 in Location Tracking. It has 10 848 GitHub stars, +261 in the last 30 days.

It shipped 40 stable releases in the past year. The latest, 1.22.0, came out on 7 November 2026. New versions land roughly every 4 days.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is AGPL-3.0-licensed and written mostly in Ruby.

Its closest alternative on selfhost.directory is geopulse (64/100, 1 475 stars). Dawarich scores higher overall. See Dawarich vs geopulse side by side.

Features

  • Areas
  • Export to GeoJSON / GPX
  • Family location sharing
  • Import from Google Takeout and other sources
  • Interactive map with layers
  • MCP server for AI assistants
  • OIDC Single Sign-OnSelf-hosted only.
  • Prometheus Metrics
  • REST API
  • Reverse geocoding with Photon or Nominatim
  • Statistics & insights
  • Trips
  • Two-factor authentication (TOTP)Requires OTP_ENCRYPTION_* variables.
  • Visit & place suggestionsMarked Beta by the project.

Dawarich README

🌍 Dawarich: Your Self-Hostable Location History Tracker

English | 简体中文

Download on the App Store Get it on Google Play

Discord | ko-fi | Patreon | Deploy on InstaPods


Screenshots

Map Map View

Timeline Timeline View

Insights Insights Page

Family Family Page

Stats Statistics Overview

Trips Trips page


About Dawarich

If you're looking for Dawarich Cloud, where everything is managed for you, check out Dawarich Cloud.

Dawarich is a self-hostable web app designed to replace Google Timeline (aka Google Location History). It enables you to:

  • Track your location history.
  • Visualize your data on an interactive map.
  • Create trips and analyze your travel history.
  • Share your location with family members.
  • Integrate with photo management apps like Immich and Photoprism to visualize geotagged photos.
  • Import your location history from Google Maps Timeline, OwnTracks, GPX, GeoJSON and some other sources
  • Explore statistics like the number of countries and cities visited, total distance traveled, and more!
  • Share your location with family members.

Changelog: Find the latest updates here.

Contribute: See CONTRIBUTING.md for how to contribute to Dawarich.

⚠️ Disclaimer

Updating strategy
  • DO NOT UPDATE AUTOMATICALLY: Read release notes before updating. Automatic updates may break your setup.
  • Under active development: Expect frequent updates, bugs, and breaking changes.
  • Do not delete your original data after importing into Dawarich.
  • Backup before updates: Always backup your data before upgrading.
  • Stay up-to-date: Make sure you're running the latest version for the best experience.

🧭 Supported Location Tracking

You can track your location with the following apps:

Simply install one of the supported apps on your device and configure it to send location updates to your Dawarich instance.


How to Start Dawarich Locally

  1. Clone the repository.
  2. Run the following command to start the app:
    docker compose -f docker/docker-compose.yml up
  3. Access the app at http://localhost:3000.

To stop the app, press Ctrl+C.

You can use default values or create a .env file based on .env.example to customize your setup.


How to Install Dawarich

Default Credentials

  • Username: demo@dawarich.app
  • Password: safepassword Feel free to change them in the account settings.

Features

Location Tracking
Location History Visualization
  • View your historical data on a map with customizable layers:
    • Heatmap
    • Points
    • Lines between points
    • Fog of War
Family Sharing
  • Share your location with family members.
  • View locations of family members on the map (with their consent).
  • Each family member can enable or disable location sharing individually.
Places
  • Save the places that matter to you, each with a visit radius, so Dawarich attributes your visits to them. Create a place from the map or straight from a visit.
Visits (Beta)
  • Dawarich can suggest places you've visited and allow you to confirm or reject them.
Statistics
  • Analyze your travel history: number of countries/cities visited, distance traveled, and time spent, broken down by year and month.
Insights
  • Get insights about your location history, like "Your most visited place is home, with 120 visits", or "You spent 30 days in Paris in 2024".
Days in country
  • See how many days you've spent in each country. Useful for tax residency purposes or just to see where you spend most of your time.
Trips
  • Create a trip to visualize your travels between two points in time. You'll be able to see the route, distance, and time spent, and also add notes to your trip. If you have Immich or Photoprism integration, you'll also be able to see photos from your trips!
Integrations
  • Provide credentials for Immich or Photoprism (or both!) and Dawarich will automatically import geodata from your photos.
  • You'll also be able to visualize your photos on the map!
Import Your Data
  • Import from various sources:
    • Google Maps Timeline
    • OwnTracks
    • Strava
    • Immich
    • GPX/GeoJSON files
    • Photos’ EXIF data
Export Your Data
  • Export your data to GeoJSON or GPX formats.

📚 Guides and Tutorials

More guides available in the Docs.


Environment Variables

Check the documentation on the website for detailed information about environment variables and settings.


Star History

As you could probably guess, I like statistics.

Star History Chart

How to install Dawarich

Install Dawarich with Docker Compose

Environment variables
SECRET_KEY_BASE, APPLICATION_HOSTS, APPLICATION_PROTOCOL, DATABASE_HOST, REDIS_URL, TIME_ZONE
  • Copy contents of the docker-compose.yml file to a file named docker-compose.yml on your server.
  • Move to the directory where you saved the docker-compose.yml file: cd /path/to/your/docker-compose.yml
  • Run the following command to start your Dawarich instance:
docker compose up -d

Needs Docker 20.10+ and Docker Compose 1.29+; the stack starts 4 containers (app, sidekiq, db, redis).

How to configure Dawarich

  • RAILS_ENVproductionApplication environment. Self-hosted instances should use production. development is for working on Dawarich itself: it reloads code when it changes and logs every SQL query. See Switching an existing instance to production.
  • SELF_HOSTEDtrueSet to true if you're self-hosting Dawarich
  • APPLICATION_HOSTSlocalhost,my.domain.comApplication hosts, provide multiple if you want your Dawarich instance to be available by multiple domains/ip addresses. Don't put protocols here, only host names.
  • APPLICATION_PROTOCOLhttpApplication protocol. Change to https if you want your Dawarich instance to be served via SSL
  • DOMAINnilPublic hostname used to build absolute URLs in outgoing emails (family invitations, digest emails, password resets). Required in production — leaving it unset will cause email delivery to fail with a URL generation error. No protocol, no trailing slash. Example: dawarich.example.com.

Dawarich releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

FAQ

Why I have some points "without data" on Stats page?

Points in places the geocoder has no information about (rivers, lakes, forests) stay unprocessed and are counted as without data, typically about 1–1.5% of points.

Why I have so many failed jobs in Sidekiq?

They are usually failed reverse-geocoding attempts caused by reaching an API limit and can be ignored if the import itself finished.

Why my attempt to import Records.json fails?

Large Google Takeout files can be killed for using too much memory; raise the container memory limit or split the file into smaller parts.

How to speed up the import process?

Add extra Sidekiq service copies to your docker-compose.yml so more workers process the import, and scale them down again afterwards.

How to update user's password?

Update the user's password and password confirmation through the Rails console.

My distance is off, how can I fix it?

Look for points stored with 0,0 coordinates — those are points Dawarich could not process — and delete them from the Rails console.

How to make a user an admin?

In the Rails console, set the admin attribute to true for that user.

How to update a user's email?

Use the Rails console and call update on the user record found by email.

How to create a new user?

Sign in as an admin and use the Settings → Users page, then the "Add new user" button.

How to enter Dawarich console?

Dawarich is built with Ruby on Rails, so you open a shell inside the app container and run the Rails console.

Does location tracking work without an internet connection?

Yes. The official iOS and Android apps record points on the device and upload them to your instance automatically once you are back online.

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…