Deploy Apache DevLake

DORA metrics and engineering dashboards from Git, CI/CD and issue trackers

Deploy Apache DevLake

/app/logs

Just deployed

MySQL

mysql:8

Just deployed

/var/lib/mysql

/var/lib/grafana

Deploy and Host Apache DevLake on Railway

Apache DevLake is an open-source dev data platform from the Apache Software Foundation. It collects data from Git hosts, CI/CD tools and issue trackers (GitHub, GitLab, Bitbucket, Jenkins, Azure DevOps, Jira and more), normalises it into one MySQL model and shows DORA metrics and engineering dashboards in Grafana.

About Hosting Apache DevLake

DevLake runs as four services: a Go backend that runs the plugins and data pipelines, a config UI (React app behind nginx) where you add connections and projects, a Grafana build with DevLake's dashboards, and MySQL. This template deploys all four on Railway's private network. Only the config UI is public; it proxies /api to the backend and /grafana to Grafana. The template generates the encryption key, the UI password and the Grafana admin password, creates the lake database on first boot and applies database migrations automatically. The backend's logs, Grafana's data and MySQL each sit on their own volume, so data survives redeploys and restarts.

Common Use Cases

  • Track the four DORA metrics (deployment frequency, lead time for changes, change failure rate, time to restore) across your repositories
  • Measure pull request cycle time, review time and code churn for GitHub, GitLab or Bitbucket teams
  • Combine Jira or other issue-tracker data with Git and CI/CD data in one set of Grafana dashboards

Dependencies for Apache DevLake Hosting

  • MySQL 8 (Railway's MySQL service, included)
  • Grafana with DevLake's dashboards (included)

Deployment Dependencies

Implementation Details

Services

  • config-ui (public): DevLake's web app with basic auth on every page. User admin, password in its ADMIN_PASS variable.
  • devlake: the backend API, plugins and pipeline runner. Creates the database and runs migrations on boot.
  • grafana: DevLake's Grafana, served at /grafana. User admin, password in its GF_SECURITY_ADMIN_PASSWORD variable.
  • MySQL: stores everything DevLake collects.

After deploy

  1. Open the config-ui domain and log in as admin with ADMIN_PASS.
  2. Under Connections, add a GitHub, GitLab, Jira, Jenkins or other connection with an access token.
  3. Under Projects, create a project, add repositories or boards from your connection, and click Collect Data.
  4. Open Dashboards to see DORA and the other dashboards in Grafana.

Don't change ENCRYPTION_SECRET on the devlake service after the first deploy: it encrypts the tokens of your saved connections. Optional settings (OIDC login, pipeline notifications, proxies, API rate limits) are described in upstream's env.example; add them as variables on devlake.

Resources and updates

Each service runs under 0.5 GB of RAM for typical teams; very large repositories need more memory on devlake and MySQL. Each service builds from the template's GitHub repo with images pinned by version and digest. When a new DevLake release is tested, the pins move on the repo's main branch and Railway shows you an update notice; read the repo's CHANGELOG.md before applying it.

Why Deploy Apache DevLake 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 Apache DevLake 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

More templates in this category

View Template
Plausible WordPress
Cookie-free WordPress stats from your own Plausible

onepush
0
View Template
Typesense Multilingual
Locale-aware multilingual search with Typesense

onepush
0
View Template
Formbricks
Surveys, NPS and in-app feedback on your own Postgres, Hub and Cube

Two Workspaces
3