---
title: "Deploy Apache DevLake"
description: "DORA metrics and engineering dashboards from Git, CI/CD and issue trackers"
category: "Analytics"
url: https://railway.com/deploy/apache-devlake
---

# Deploy Apache DevLake

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

**[Deploy Apache DevLake on Railway](https://railway.com/template/apache-devlake)**

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

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

## Template content

### devlake https://raw.githubusercontent.com/apache/devlake/v1.0.3-beta19/grafana/img/logo.png

- **Source:** https://github.com/aalfath/devlake-railway-template
- **Health check:** /ready

### config-ui https://raw.githubusercontent.com/apache/devlake/v1.0.3-beta19/grafana/img/logo.png

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

### MySQL https://devicons.railway.app/i/mysql.svg

- **Image:** mysql:8
- **Start command:** `docker-entrypoint.sh mysqld --innodb-use-native-aio=0 --disable-log-bin --performance_schema=0 --innodb-buffer-pool-size=128M --character-set-server=utf8mb4 --collation-server=utf8mb4_bin`

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

- **Source:** https://github.com/aalfath/devlake-railway-template
- **Health check:** /grafana/api/health

## Documentation

# 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

* [Apache DevLake documentation](https://devlake.apache.org/docs/Overview/Introduction)
* [Release v1.0.3-beta19](https://github.com/apache/devlake/releases/tag/v1.0.3-beta19)
* [Template repository](https://github.com/aalfath/devlake-railway-template)

### 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.



## Similar templates

- [Plausible WordPress](https://railway.com/deploy/deploy-plausible-for-wordpress-sites) — Cookie-free WordPress stats from your own Plausible
- [Typesense Multilingual](https://railway.com/deploy/deploy-typesense-multilingual-search) — Locale-aware multilingual search with Typesense
- [Formbricks](https://railway.com/deploy/formbricks-surveys) — Surveys, NPS and in-app feedback on your own Postgres, Hub and Cube

Open this page in a browser: https://railway.com/deploy/apache-devlake
