Dreeve logo

Dreeve

Self-hosted, open-source dashboard for your sports and fitness data

Alternative to: strava


Dreeve (formerly Statistics for Strava) is a self-hosted dashboard for your sports and fitness data. Import FIT, TCX and GPX files or connect Strava, then explore activities, monthly stats, heatmaps, gear maintenance, milestones and a yearly Rewind in your browser.

Dreeve Docker Compose example

Self-host Dreeve on your own server, homelab, or VPS starting from this Docker Compose example. It runs Dreeve in Docker containers using the official robiningelbrecht/dreeve:latest, robiningelbrecht/dreeve:latest images, with persistent volumes and automatic restarts preconfigured. Review the environment variables and adjust them to your setup, save the file as compose.yml (or docker-compose.yml), and start the stack with docker compose up -d.

# Shared environment for the Dreeve containers (app + daemon). Both must see the
# same configuration, so it is anchored here and merged into each service below.
x-dreeve-env: &dreeve-env
  # How activities get in: "files" (FIT/TCX/GPX uploads and the watch folder) or "stravaApi".
  IMPORT_MODE: "files"
  # Public URL Dreeve is reached on (root of a domain or subdomain, include the port if any).
  APP_URL: "http://localhost:8080"
  # Timezone (TZ database identifier, e.g. Europe/Brussels).
  TZ: "Etc/GMT"
  # Signs the admin session cookie. Set it to a long random string (openssl rand -hex 32).
  APP_SECRET: "changeme"
  # Admin panel username.
  ADMIN_USERNAME: "admin"
  # Bcrypt hash of the admin password (docker compose exec app bin/console security:hash-password); every $ is doubled in compose YAML. This placeholder is the hash of "changeme".
  ADMIN_PASSWORD_HASH: "$$2y$$13$$Ga5Rv8mOY5uIhNiyKOtt3uQ1oIFtR5/OQzcDTv2KmU5bdVR4r.L9q"
  # Comma-separated IP/CIDR allowlist for /admin; empty allows every IP.
  ADMIN_ALLOWED_IPS: ""
  # Peers allowed to set X-Forwarded-* headers; private_ranges suits Docker behind a reverse proxy, empty disables proxy trust.
  TRUSTED_PROXIES: "private_ranges"
  # OpenID Connect issuer URL for optional single sign-on (Authentik, Authelia, Pocket ID, ...).
  OIDC_ISSUER_URL: ""
  # OIDC client id registered with your identity provider.
  OIDC_CLIENT_ID: ""
  # OIDC client secret.
  OIDC_CLIENT_SECRET: ""
  # Comma-separated users allowed to sign in via OIDC.
  OIDC_ALLOWED_USERS: ""
  # API key enabling the activity-upload HTTP API (generate under Settings -> Security -> API access); empty keeps the API closed.
  DREEVE_API_KEY: ""
  # Key enabling the read-only MCP server at /mcp (generate under Settings -> Security -> MCP access); empty keeps it disabled.
  DREEVE_MCP_KEY: ""
  # Strava API client id (only used with IMPORT_MODE=stravaApi; must not be empty, keep replace-me otherwise).
  STRAVA_CLIENT_ID: "replace-me"
  # Strava API client secret (only used with IMPORT_MODE=stravaApi; must not be empty, keep replace-me otherwise).
  STRAVA_CLIENT_SECRET: "replace-me"
  # Strava API refresh token (only used with IMPORT_MODE=stravaApi; must not be empty, keep replace-me otherwise).
  STRAVA_REFRESH_TOKEN: "replace-me"
  # How many requests Dreeve serves concurrently; lower to 2 on a low-memory machine.
  FRANKENPHP_NUM_WORKERS: "4"

services:
  app:
    image: robiningelbrecht/dreeve:latest
    restart: unless-stopped
    volumes:
      - build:/var/www/build
      - database:/var/www/storage/database
      - files:/var/www/storage/files
      - watch:/var/www/watch
      - backups:/var/www/backups
    environment:
      <<: *dreeve-env
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:2019/metrics"]
      start_period: 60s

  # Runs the recurring background tasks (imports, the watch folder, backups).
  daemon:
    image: robiningelbrecht/dreeve:latest
    restart: unless-stopped
    command: ["bin/console", "app:daemon:run"]
    volumes:
      - build:/var/www/build
      - database:/var/www/storage/database
      - files:/var/www/storage/files
      - watch:/var/www/watch
      - backups:/var/www/backups
    environment:
      <<: *dreeve-env
    healthcheck:
      test: ["CMD", "sh", "-c", "test -f /var/www/storage/database/dreeve.db"]
      start_period: 5s

volumes:
  build:
  database:
  files:
  watch:
  backups:

Values set to changeme are required — replace them with your own values before starting Dreeve.

Prefer a managed setup? WinterFlow installs, configures, and updates Dreeve for you using this same Docker Compose configuration.