| --- |
| title: "Local Setup" |
| description: > |
| The steps to install DevLake locally |
| sidebar_position: 1 |
| --- |
| |
| |
| ## Prerequisites |
| |
| - [Docker v19.03.10+](https://docs.docker.com/get-docker) |
| - [docker-compose v2.2.3+](https://docs.docker.com/compose/install/) |
| |
| ## Launch DevLake |
| |
| - Commands written `like this` are to be run in your terminal. |
| |
| 1. Download `docker-compose.yml` and `env.example` from [latest release page](https://github.com/apache/incubator-devlake/releases/latest) into a folder. |
| 2. Rename `env.example` to `.env`. For Mac/Linux users, please run `mv env.example .env` in the terminal. |
| 3. Run `docker-compose up -d` to launch DevLake. |
| |
| ## Configure data connections and collect data |
| |
| 1. Visit `config-ui` at `http://localhost:4000` in your browser to configure data connections. |
| - Navigate to desired plugins on the Integrations page |
| - Please reference the following for more details on how to configure each one:<br/> |
| - [Jira](../Plugins/jira.md) |
| - [GitHub](../Plugins/github.md): For users who'd like to collect GitHub data, we recommend reading our [GitHub data collection guide](../UserManuals/GitHubUserGuide.md) which covers the following steps in detail. |
| - [GitLab](../Plugins/gitlab.md) |
| - [Jenkins](../Plugins/jenkins.md) |
| - Submit the form to update the values by clicking on the **Save Connection** button on each form page |
| - `devlake` takes a while to fully boot up. if `config-ui` complaining about api being unreachable, please wait a few seconds and try refreshing the page. |
| 2. Create pipelines to trigger data collection in `config-ui` |
| 3. Click *View Dashboards* button in the top left when done, or visit `localhost:3002` (username: `admin`, password: `admin`). |
| - We use [Grafana](https://grafana.com/) as a visualization tool to build charts for the [data](../DataModels/DataSupport.md) stored in our database. |
| - Using SQL queries, we can add panels to build, save, and edit customized dashboards. |
| - All the details on provisioning and customizing a dashboard can be found in the [Grafana Doc](../UserManuals/GrafanaUserGuide.md). |
| 4. To synchronize data periodically, users can set up recurring pipelines with DevLake's [pipeline blueprint](../UserManuals/RecurringPipelines.md) for details. |
| |
| ## Upgrade to a newer version |
| |
| Support for database schema migration was introduced to DevLake in v0.10.0. From v0.10.0 onwards, users can upgrade their instance smoothly to a newer version. However, versions prior to v0.10.0 do not support upgrading to a newer version with a different database schema. We recommend users to deploy a new instance if needed. |
| |
| <br/> |