dosubot[bot] commented on issue #7927:
URL:
https://github.com/apache/incubator-devlake/issues/7927#issuecomment-2305256136
<!-- Answer -->
To configure Docker volumes for `MySQL-storage`, `grafana-storage`, and
`devlake-log`, you can use the following `docker-compose.yml` configuration:
```yaml
version: "3"
services:
mysql:
image: mysql:8.0.26
volumes:
- mysql-storage:/var/lib/mysql
restart: always
ports:
- 127.0.0.1:3306:3306
environment:
MYSQL_ROOT_PASSWORD: admin
MYSQL_DATABASE: lake
MYSQL_USER: merico
MYSQL_PASSWORD: merico
grafana:
image: apache/devlake-dashboard:v0.11.0
ports:
- 3002:3000
volumes:
- grafana-storage:/var/lib/grafana
environment:
GF_USERS_ALLOW_SIGN_UP: 'false'
GF_DASHBOARDS_JSON_ENABLED: 'true'
GF_LIVE_ALLOWED_ORIGINS: '*'
MYSQL_URL: mysql:3306
MYSQL_DATABASE: lake
MYSQL_USER: merico
MYSQL_PASSWORD: merico
restart: always
depends_on:
- mysql
devlake:
image: apache/devlake:v0.11.0
ports:
- 127.0.0.1:8080:8080
restart: always
volumes:
- ./.env:/app/.env
- ./logs:/app/logs
environment:
LOGGING_DIR: /app/logs
depends_on:
- mysql
config-ui:
image: apache/devlake-config-ui:v0.11.0
ports:
- 127.0.0.1:4000:80
env_file:
- ./.env
environment:
DEVLAKE_ENDPOINT: devlake:8080
GRAFANA_ENDPOINT: http://localhost:3002
depends_on:
- devlake
volumes:
mysql-storage:
grafana-storage:
```
In this configuration:
- `mysql-storage` is used for MySQL data storage.
- `grafana-storage` is used for Grafana data storage.
- `./logs` is used for DevLake logs.
To launch DevLake, follow these steps:
1. Download `docker-compose.yml` and `env.example` from the [latest
release](https://github.com/apache/incubator-devlake/releases/tag/v0.16.1-beta1)
into a folder.
2. Rename `env.example` to `.env`. For Mac/Linux users, run `mv env.example
.env` in the terminal.
3. Run `docker-compose up -d` to launch DevLake.
Visit `http://localhost:4000` in your browser to configure DevLake and
collect data. To view dashboards, visit `localhost:3002` (username: `admin`,
password: `admin`)
<sup>[[1]](https://github.com/apache/incubator-devlake/blob/main/devops/releases/lake-v0.13.0/docker-compose.yml)</sup><sup>[[2]](https://github.com/apache/incubator-devlake-website/blob/main/versioned_docs/version-v0.15/GettingStarted/DockerComposeSetup.md)</sup><sup>[[3]](https://github.com/apache/incubator-devlake-website/blob/main/versioned_docs/version-v0.16/GettingStarted/DockerComposeSetup.md)</sup><sup>[[4]](https://github.com/apache/incubator-devlake/blob/main/devops/releases/lake-v0.15.0/docker-compose.yml)</sup><sup>[[5]](https://github.com/apache/incubator-devlake/blob/main/devops/releases/lake-v0.11.0/docker-compose.yml)</sup>.
<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]