-
Notifications
You must be signed in to change notification settings - Fork 0
v.1.0.0 #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
v.1.0.0 #3
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -23,18 +23,17 @@ services: | |||||||||||||||||||||
ports: | ||||||||||||||||||||||
- 3306:3306 | ||||||||||||||||||||||
environment: | ||||||||||||||||||||||
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD} | ||||||||||||||||||||||
MYSQL_ROOT_PASSWORD: admin | ||||||||||||||||||||||
MYSQL_DATABASE: lake | ||||||||||||||||||||||
MYSQL_USER: ${MYSQL_USER} | ||||||||||||||||||||||
MYSQL_PASSWORD: ${MYSQL_PASSWORD} | ||||||||||||||||||||||
MYSQL_USER: merico | ||||||||||||||||||||||
MYSQL_PASSWORD: merico | ||||||||||||||||||||||
Comment on lines
+26
to
+29
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Avoid hardcoding database credentials in plaintext services:
mysql:
environment:
- MYSQL_ROOT_PASSWORD: admin
+ MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: lake
- MYSQL_USER: merico
- MYSQL_PASSWORD: merico
+ MYSQL_USER: ${MYSQL_USER}
+ MYSQL_PASSWORD: ${MYSQL_PASSWORD}
TZ: UTC This way, you can define actual values in 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
|
||||||||||||||||||||||
TZ: UTC | ||||||||||||||||||||||
ENCRYPTION_SECRET: ${ENCRYPTION_SECRET} | ||||||||||||||||||||||
command: --character-set-server=utf8mb4 | ||||||||||||||||||||||
--collation-server=utf8mb4_bin | ||||||||||||||||||||||
--skip-log-bin | ||||||||||||||||||||||
|
||||||||||||||||||||||
grafana: | ||||||||||||||||||||||
image: devlake.docker.scarf.sh/apache/devlake-dashboard:v1.0.1 | ||||||||||||||||||||||
image: devlake.docker.scarf.sh/apache/devlake-dashboard:v1.0.0 | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) 🛠️ Refactor suggestion Use env vars for Grafana DB credentials & remove trailing whitespace services:
grafana:
- image: devlake.docker.scarf.sh/apache/devlake-dashboard:v1.0.0
+ image: devlake.docker.scarf.sh/apache/devlake-dashboard:v1.0.0
ports:
@@
environment:
GF_SERVER_ROOT_URL: "http://localhost:4000/grafana"
GF_USERS_DEFAULT_THEME: "light"
MYSQL_URL: mysql:3306
MYSQL_DATABASE: lake
- MYSQL_USER: merico
- MYSQL_PASSWORD: merico
+ MYSQL_USER: ${MYSQL_USER}
+ MYSQL_PASSWORD: ${MYSQL_PASSWORD}
TZ: UTC This maintains consistency and centralizes secret management. Also applies to: 46-47 🧰 Tools🪛 YAMLlint (1.37.1)[error] 36-36: trailing spaces (trailing-spaces) 🤖 Prompt for AI Agents
|
||||||||||||||||||||||
ports: | ||||||||||||||||||||||
- 3002:3000 | ||||||||||||||||||||||
volumes: | ||||||||||||||||||||||
|
@@ -44,16 +43,15 @@ services: | |||||||||||||||||||||
GF_USERS_DEFAULT_THEME: "light" | ||||||||||||||||||||||
MYSQL_URL: mysql:3306 | ||||||||||||||||||||||
MYSQL_DATABASE: lake | ||||||||||||||||||||||
MYSQL_USER: ${MYSQL_USER} | ||||||||||||||||||||||
MYSQL_PASSWORD: ${MYSQL_PASSWORD} | ||||||||||||||||||||||
MYSQL_USER: merico | ||||||||||||||||||||||
MYSQL_PASSWORD: merico | ||||||||||||||||||||||
TZ: UTC | ||||||||||||||||||||||
ENCRYPTION_SECRET: ${ENCRYPTION_SECRET} | ||||||||||||||||||||||
restart: always | ||||||||||||||||||||||
depends_on: | ||||||||||||||||||||||
- mysql | ||||||||||||||||||||||
|
||||||||||||||||||||||
devlake: | ||||||||||||||||||||||
image: devlake.docker.scarf.sh/apache/devlake:v1.0.1 | ||||||||||||||||||||||
image: devlake.docker.scarf.sh/apache/devlake:v1.0.0 | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Remove trailing whitespace from image tag - image: devlake.docker.scarf.sh/apache/devlake:v1.0.0
+ image: devlake.docker.scarf.sh/apache/devlake:v1.0.0 🧰 Tools🪛 YAMLlint (1.37.1)[error] 54-54: trailing spaces (trailing-spaces) 🤖 Prompt for AI Agents
|
||||||||||||||||||||||
ports: | ||||||||||||||||||||||
- 8080:8080 | ||||||||||||||||||||||
restart: always | ||||||||||||||||||||||
|
@@ -64,12 +62,11 @@ services: | |||||||||||||||||||||
environment: | ||||||||||||||||||||||
LOGGING_DIR: /app/logs | ||||||||||||||||||||||
TZ: UTC | ||||||||||||||||||||||
ENCRYPTION_SECRET: ${ENCRYPTION_SECRET} | ||||||||||||||||||||||
depends_on: | ||||||||||||||||||||||
- mysql | ||||||||||||||||||||||
|
||||||||||||||||||||||
config-ui: | ||||||||||||||||||||||
image: devlake.docker.scarf.sh/apache/devlake-config-ui:v1.0.1 | ||||||||||||||||||||||
image: devlake.docker.scarf.sh/apache/devlake-config-ui:v1.0.0 | ||||||||||||||||||||||
ports: | ||||||||||||||||||||||
- 4000:4000 | ||||||||||||||||||||||
env_file: | ||||||||||||||||||||||
|
@@ -78,9 +75,8 @@ services: | |||||||||||||||||||||
DEVLAKE_ENDPOINT: devlake:8080 | ||||||||||||||||||||||
GRAFANA_ENDPOINT: grafana:3000 | ||||||||||||||||||||||
TZ: UTC | ||||||||||||||||||||||
ENCRYPTION_SECRET: ${ENCRYPTION_SECRET} | ||||||||||||||||||||||
ADMIN_USER: ${ADMIN_USER} | ||||||||||||||||||||||
ADMIN_PASS: ${ADMIN_PASS} | ||||||||||||||||||||||
#ADMIN_USER: devlake | ||||||||||||||||||||||
#ADMIN_PASS: merico | ||||||||||||||||||||||
depends_on: | ||||||||||||||||||||||
- devlake | ||||||||||||||||||||||
|
||||||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧹 Nitpick (assertive)
Consider moving sample configuration to a template file
The long commented example for
ENABLE_SUBTASKS_BY_DEFAULT
in.env
can make the live env file noisy. It’s better practice to keep.env
focused on actual values and move samples or examples into a.env.example
(or documentation) so that users can clearly see which variables need setting without clutter.🤖 Prompt for AI Agents