[{"data":1,"prerenderedAt":180},["ShallowReactive",2],{"seo-verification":3,"blog-self-host-devlake-vps-dora-metrics-ma-en":6,"promo-bar-likely":151},{"google":4,"bing":5},"EycwPY2XMyTkVzas3n1ygeNJFGAH513qrMjfDljzsMQ","",{"key":7,"data":8},"blog-self-host-devlake-vps-dora-metrics-ma-en",{"id":9,"slug":10,"slugs":11,"title":15,"excerpt":16,"readTime":17,"views":18,"isPinned":19,"noindex":19,"publishedAt":20,"updatedAt":21,"category":22,"categories":28,"featuredImage":30,"bgImage":31,"posterImage":32,"relatedSolution":33,"intro":36,"keyPoints":37,"sections":38,"ctaTitle":114,"ctaBody":115,"ctaButton":116,"ctaUrl":117,"relatedPosts":118},595,"self-host-devlake-vps-dora-metrics",{"fr":12,"en":10,"ar":13,"es":14},"self-host-devlake-vps","استضافة-devlake-على-vps","autoalojar-devlake-vps-metricas-dora","Apache DevLake on a VPS: self-hosted DORA metrics","Install Apache DevLake on a VPS with Docker Compose: MySQL, Grafana, HTTPS behind nginx, GitHub, GitLab and Jira connections, and the four DORA metrics.",6,0,false,"2026-11-26T00:00:00+00:00","2026-11-26T08:51:01+00:00",{"id":23,"name":24,"slug":25,"color":26,"icon":27},7,"Self-hosting","self-hosting","bg-indigo-500\u002F10 text-indigo-400","cloud",[29],{"id":23,"name":24,"slug":25,"color":26,"icon":27},"\u002Fblog\u002Fcovers\u002Fself-host-devlake-vps-cover.webp","\u002Fblog\u002Fcovers\u002Fbg.svg","\u002Fblog\u002Fcovers\u002Fself-host-devlake-vps-poster.svg",{"categorySlug":34,"appSlug":35},"development","devlake","How many times did you deploy last month? How long does a commit take to reach production? How many of your changes caused an incident? Without a tool, these questions end up as guesses. Apache DevLake collects data from your repositories, your CI and your tickets, and turns it into the four DORA metrics in ready-made Grafana dashboards. This guide installs it on a VPS with Docker Compose, publishes it over HTTPS behind nginx and connects it to GitHub or GitLab.",[],[39,43,52,79,82,95,99,102,105,108,111],{"type":40,"title":41,"body":42},"h2","What Apache DevLake does","DevLake is an Apache Software Foundation project, released under the **Apache-2.0** license and written in Go. It is not one more tool in your chain: it **reads** the tools you already have — GitHub, GitLab, Bitbucket, Azure DevOps, Jenkins, GitHub Actions, Jira, Linear, PagerDuty, SonarQube and about forty others — and stores their data in a **common model** kept in MySQL.\n\nOn top of that model, Grafana dashboards compute the four DORA metrics — **deployment frequency**, **lead time for changes**, **change failure rate**, **time to restore service** — plus dozens of other views: code review, pull request cycle, issues, quality.",{"type":44,"title":45,"items":46},"ul","What DevLake gives you",[47,48,49,50,51],"**DORA metrics per project** — computed from your pull requests, deployments and incidents, not reported by hand.","**One view across several forges** — GitHub and GitLab in the same tables, comparable with the same query.","**More than seventy Grafana dashboards** — code review, pull request wait time, CI, issues, comparison by team.","**Webhooks protected by an API key** — to report a deployment or an incident from any CI or on-call tool.","**Your data stays with you** — access tokens encrypted in the database, activity history on your server, free SQL queries.",{"type":53,"title":54,"headers":55,"rows":58},"comparison","Estimated metrics or DevLake on your VPS",[5,56,57],"Without a measurement tool","With DevLake on your VPS",[59,63,67,71,75],[60,61,62],"Deployment frequency","Counted from memory","Computed from CI",[64,65,66],"Lead time for changes","Unknown","Measured from commit to deployment",[68,69,70],"Several forges","One dashboard per tool","A common data model",[72,73,74],"Tokens and history","At a third-party service","Encrypted on your server",[76,77,78],"Dashboards","To be built","More than seventy included",{"type":40,"title":80,"body":81},"Prepare the server","Plan an Ubuntu 24.04 VPS with at least **2 GB of RAM** and 2 vCPUs: MySQL, DevLake and Grafana use about 1 GB at rest. Move to **4 GB** if you collect many repositories or several years of history, since MySQL carries the collection and metric computation. Plan 20 GB of disk.\n\nYou also need Docker with the Compose plugin, and a domain name (or subdomain) pointing to the VPS: the interface opens there over HTTPS, and your pipelines will send their deployments to it by webhook.",{"type":83,"title":84,"steps":85},"steps","Install DevLake with Docker Compose",[86,89,92],{"title":87,"body":88},"Prepare the folder and the .env file","The file holds the domain, the two MySQL passwords, the administration password and the key that encrypts the access tokens to your forges.\n```bash\nmkdir -p \u002Fopt\u002Fdevlake && cd \u002Fopt\u002Fdevlake\ncat > .env \u003C\u003CEOF\nDOMAIN=devlake.example.com\nDB_ROOT_PASSWORD=$(openssl rand -hex 16)\nDB_PASSWORD=$(openssl rand -hex 16)\nADMIN_PASSWORD=$(openssl rand -hex 12)\nENCRYPTION_KEY_HEX64=$(openssl rand -hex 32)\nEOF\nchmod 600 .env\n```",{"title":90,"body":91},"Write the docker-compose.yml file","Four services: MySQL, the DevLake server, Grafana and config-ui, an nginx that serves the interface and forwards `\u002Fapi` to DevLake and `\u002Fgrafana` to Grafana. Only config-ui publishes a port, and only on the loopback interface.\n```yaml\nservices:\n  mysql:\n    image: mysql:8.4.13\n    restart: unless-stopped\n    environment:\n      MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}\n      MYSQL_DATABASE: lake\n      MYSQL_USER: devlake\n      MYSQL_PASSWORD: ${DB_PASSWORD}\n    command: --character-set-server=utf8mb4 --collation-server=utf8mb4_bin --skip-log-bin\n    volumes: [devlake-mysql:\u002Fvar\u002Flib\u002Fmysql]\n    healthcheck:\n      test: [\"CMD\", \"mysqladmin\", \"ping\", \"-h\", \"127.0.0.1\", \"--silent\"]\n      interval: 10s\n      retries: 30\n  devlake:\n    image: apache\u002Fdevlake:v1.0.3-beta19\n    restart: unless-stopped\n    depends_on: {mysql: {condition: service_healthy}}\n    environment:\n      DB_URL: mysql:\u002F\u002Fdevlake:${DB_PASSWORD}@mysql:3306\u002Flake?charset=utf8mb4&parseTime=True&loc=UTC\n      ENCRYPTION_SECRET: ${ENCRYPTION_KEY_HEX64}\n      AUTH_ENABLED: \"false\"\n  grafana:\n    image: apache\u002Fdevlake-dashboard:v1.0.3-beta19\n    restart: unless-stopped\n    depends_on: {mysql: {condition: service_healthy}}\n    environment:\n      GF_SERVER_ROOT_URL: https:\u002F\u002F${DOMAIN}\u002Fgrafana\n      GF_SECURITY_ADMIN_PASSWORD: ${ADMIN_PASSWORD}\n      MYSQL_URL: mysql:3306\n      MYSQL_DATABASE: lake\n      MYSQL_USER: devlake\n      MYSQL_PASSWORD: ${DB_PASSWORD}\n    volumes: [devlake-grafana:\u002Fvar\u002Flib\u002Fgrafana]\n  config-ui:\n    image: apache\u002Fdevlake-config-ui:v1.0.3-beta19\n    restart: unless-stopped\n    depends_on: [devlake, grafana]\n    environment:\n      DEVLAKE_ENDPOINT: devlake:8080\n      GRAFANA_ENDPOINT: grafana:3000\n      ADMIN_USER: admin\n      ADMIN_PASS: ${ADMIN_PASSWORD}\n    ports: [\"127.0.0.1:4000:4000\"]\nvolumes:\n  devlake-mysql: {}\n  devlake-grafana: {}\n```",{"title":93,"body":94},"Start and check","The first start creates the database schema, which takes one or two minutes. Without credentials the interface must answer 401; with the admin account, the API returns its version.\n```bash\ndocker compose up -d --wait\ncurl -s -o \u002Fdev\u002Fnull -w '%{http_code}\\n' http:\u002F\u002F127.0.0.1:4000\u002F          # 401\ncurl -s -u admin:\"$(grep ^ADMIN_PASSWORD= .env | cut -d= -f2)\" http:\u002F\u002F127.0.0.1:4000\u002Fapi\u002Fversion\n```",{"type":96,"title":97,"body":98},"tip","Keep the encryption key","`ENCRYPTION_SECRET` encrypts the GitHub, GitLab or Jira tokens you save in the database. Without it, DevLake refuses to start; if it changes, existing connections become unreadable and must be recreated. Back up the `.env` file together with the database. And never leave `ADMIN_PASS` empty: config-ui would then open without any password.",{"type":40,"title":100,"body":101},"Publish DevLake over HTTPS behind nginx","The VPS's nginx receives the domain and forwards to config-ui's local port, which then serves the interface, the API and Grafana.\n```nginx\nserver {\n  listen 443 ssl;\n  server_name devlake.example.com;\n  # certificats Let's Encrypt (certbot --nginx)\n  location \u002F {\n    proxy_pass http:\u002F\u002F127.0.0.1:4000;\n    proxy_set_header Host $host;\n    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n    proxy_set_header X-Forwarded-Proto https;\n    proxy_read_timeout 300s;\n  }\n}\n```\nGet the certificate with `certbot --nginx -d devlake.example.com`. `GF_SERVER_ROOT_URL` must carry the same public address: Grafana uses it for its links.",{"type":40,"title":103,"body":104},"Connect GitHub or GitLab and create a project","Open `https:\u002F\u002Fdevlake.example.com` and sign in with `admin` and the password from `.env`. Under **Connections**, add a GitHub connection with a read-only fine-grained token (contents, metadata, pull requests, actions), then choose the repositories to collect. GitLab, Jira or Jenkins are added the same way.\n\nUnder **Projects**, then create a project, enable the **DORA metrics** and attach your connections. Start the collection: DevLake fetches the history (six months by default), then only what has changed on each scheduled run.",{"type":40,"title":106,"body":107},"Report your deployments and incidents","DORA metrics need to know what a **deployment** is and what an **incident** is. The simplest way is a rule on the data already collected: in the connection settings, state for example that every GitHub Actions job whose name contains `deploy` is a production deployment, and that every ticket labelled `incident` is an incident.\n\nIf your CI is not collected, create a **Webhook** connection: DevLake generates an API key and shows `curl` commands ready to paste into your pipeline. These calls go through `\u002Fapi\u002Frest\u002F`, protected by the API key and not by the interface password.",{"type":40,"title":109,"body":110},"Backup and update","All useful state lives in MySQL; the `.env` file holds the key without which saved tokens are unreadable. Back up both every night:\n```bash\ncd \u002Fopt\u002Fdevlake\ndocker compose exec -T mysql sh -c 'mysqldump -uroot -p\"$MYSQL_ROOT_PASSWORD\" --single-transaction lake' \\\n  | gzip > \u002Froot\u002Fdevlake-$(date +%F).sql.gz\ncp .env \u002Froot\u002Fdevlake-env-$(date +%F)\n```\nTo update, change the version number of the three `apache\u002Fdevlake*` images in the Compose file, then run `docker compose pull && docker compose up -d`. If the interface asks you to confirm a database migration, take a backup first, then confirm. Read the release notes before skipping several versions.",{"type":40,"title":112,"body":113},"Apache DevLake in one click on ServOrbit","On a ServOrbit VPS, DevLake installs from the Marketplace: official images, MySQL, generated administration password and encryption key, and an nginx reverse proxy over HTTPS on your domain or on the VPS's free subdomain. Pair it with **Gitea** and **Jenkins** for a fully self-hosted development chain: DevLake can collect both.","Your DORA metrics, on your VPS","A ServOrbit Ubuntu 24.04 VPS with 2 GB of RAM is enough to start with Apache DevLake. One-click install from the Marketplace, HTTPS on your domain or on the VPS's free subdomain, generated administration password.","Install Apache DevLake","\u002Fapplications\u002Fdevelopment\u002Fdevlake",[119,141,161],{"id":120,"slug":121,"slugs":122,"title":126,"excerpt":127,"readTime":128,"views":129,"isPinned":19,"noindex":19,"publishedAt":130,"updatedAt":131,"category":132,"categories":136,"featuredImage":138,"bgImage":31,"posterImage":139,"relatedSolution":140},212,"woodpecker-ci-and-forgejo-cicd-pipeline-on-a-vps",{"fr":123,"en":121,"ar":124,"es":125},"woodpecker-ci-pipeline-vps-forgejo","woodpecker-ci-وforgejo-خط-أنابيب-cicd-على-خادم-vps","woodpecker-ci-forgejo-pipeline-cicd-vps","Woodpecker CI and Forgejo: CI\u002FCD pipeline on a VPS","Deploy Woodpecker CI v3 with Forgejo on your VPS: Docker Compose setup, YAML pipelines, secrets, multi-arch runners and OAuth troubleshooting.",12,2,"2026-08-02T00:00:00+00:00","2026-11-08T01:13:13+00:00",{"id":129,"name":133,"slug":134,"color":135,"icon":134},"Automation","automatisation","bg-brand-action\u002F10 text-brand-action",[137],{"id":129,"name":133,"slug":134,"color":135,"icon":134},"\u002Fblog\u002Fcovers\u002Fwoodpecker-ci-pipeline-vps-forgejo-cover.webp","\u002Fblog\u002Fcovers\u002Fwoodpecker-ci-pipeline-vps-forgejo-poster.svg",null,{"id":142,"slug":143,"slugs":144,"title":148,"excerpt":149,"readTime":23,"views":150,"isPinned":19,"noindex":151,"publishedAt":152,"updatedAt":153,"category":154,"categories":155,"featuredImage":157,"bgImage":31,"posterImage":158,"relatedSolution":159},515,"self-host-jenkins-ci-cd-server-vps",{"fr":145,"en":143,"ar":146,"es":147},"self-host-jenkins-vps","استضافة-jenkins-على-vps-خادم-ci-cd","autoalojar-jenkins-servidor-ci-cd-vps","Jenkins on a VPS: your open-source CI\u002FCD server with Docker","Install Jenkins LTS on a VPS with Docker Compose: Jenkinsfile pipelines, Git webhooks, HTTPS behind nginx and build agents isolated from the controller.",1,true,"2026-10-28T00:00:00+00:00","2026-11-04T16:30:29+00:00",{"id":23,"name":24,"slug":25,"color":26,"icon":27},[156],{"id":23,"name":24,"slug":25,"color":26,"icon":27},"\u002Fblog\u002Fcovers\u002Fself-host-jenkins-vps-cover.webp","\u002Fblog\u002Fcovers\u002Fself-host-jenkins-vps-poster.svg",{"categorySlug":34,"appSlug":160},"jenkins",{"id":162,"slug":163,"slugs":164,"title":168,"excerpt":169,"readTime":170,"views":150,"isPinned":19,"noindex":19,"publishedAt":171,"updatedAt":172,"category":173,"categories":174,"featuredImage":176,"bgImage":31,"posterImage":177,"relatedSolution":178},74,"host-gitea-on-your-own-vps",{"fr":165,"en":163,"ar":166,"es":167},"heberger-gitea","استضافة-gitea-على-خادم-vps-الخاص-بك","alojar-gitea-en-un-vps","Host Gitea on your own VPS in 2026","Deploy Gitea 1.25 on a VPS with Docker and SSL. Full guide: Gitea Actions CI\u002FCD, Gitea vs Forgejo v16 comparison, daily administration, SSH and HTTPS troubleshooting.",13,"2026-04-07T00:00:00+00:00","2026-11-08T16:32:50+00:00",{"id":23,"name":24,"slug":25,"color":26,"icon":27},[175],{"id":23,"name":24,"slug":25,"color":26,"icon":27},"\u002Fblog\u002Fcovers\u002Fheberger-gitea-cover.webp","\u002Fblog\u002Fcovers\u002Fheberger-gitea-poster.svg",{"categorySlug":34,"appSlug":179},"gitea",1795742907748]