style: lint code

This commit is contained in:
Sun-ZhenXing
2026-02-23 17:41:05 +08:00
parent ced072de66
commit 7e14b01b78
240 changed files with 4301 additions and 1539 deletions

View File

@@ -4,7 +4,7 @@ x-defaults: &defaults
driver: json-file
options:
max-size: 100m
max-file: "3"
max-file: '3'
services:
dify-api:
@@ -41,14 +41,13 @@ services:
memory: ${DIFY_API_MEMORY_RESERVATION:-1G}
healthcheck:
test:
[
"CMD",
"wget",
"--no-verbose",
"--tries=1",
"--spider",
"http://localhost:5001/health",
]
- CMD
- wget
- --no-verbose
- --tries=1
- --spider
- 'http://localhost:5001/health'
interval: 30s
timeout: 10s
retries: 3
@@ -98,7 +97,7 @@ services:
- NEXT_PUBLIC_API_URL=${DIFY_API_URL:-http://localhost:5001}
- NEXT_PUBLIC_APP_URL=${DIFY_APP_URL:-http://localhost:3000}
ports:
- "${DIFY_PORT_OVERRIDE:-3000}:3000"
- '${DIFY_PORT_OVERRIDE:-3000}:3000'
deploy:
resources:
limits:
@@ -128,7 +127,7 @@ services:
cpus: ${DIFY_DB_CPU_RESERVATION:-0.25}
memory: ${DIFY_DB_MEMORY_RESERVATION:-256M}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
test: [CMD-SHELL, pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB]
interval: 30s
timeout: 10s
retries: 3
@@ -151,7 +150,7 @@ services:
cpus: ${DIFY_REDIS_CPU_RESERVATION:-0.1}
memory: ${DIFY_REDIS_MEMORY_RESERVATION:-128M}
healthcheck:
test: ["CMD", "redis-cli", "ping"]
test: [CMD, redis-cli, ping]
interval: 10s
timeout: 3s
retries: 3
@@ -181,14 +180,13 @@ services:
memory: ${DIFY_WEAVIATE_MEMORY_RESERVATION:-512M}
healthcheck:
test:
[
"CMD",
"wget",
"--no-verbose",
"--tries=1",
"--spider",
"http://localhost:8080/v1/.well-known/ready",
]
- CMD
- wget
- --no-verbose
- --tries=1
- --spider
- 'http://localhost:8080/v1/.well-known/ready'
interval: 30s
timeout: 10s
retries: 3