From cda2dd34dbe4b63e770fe6ff8bf872b48f9e32d7 Mon Sep 17 00:00:00 2001 From: climber Date: Mon, 26 Oct 2026 13:03:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DMySQL=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E6=9D=83=E9=99=90=E5=AF=BC=E8=87=B4API=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E8=BF=9E=E6=8E=A5=E6=95=B0=E6=8D=AE=E5=BA=93=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- infra/deploy/compose.local.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/infra/deploy/compose.local.yaml b/infra/deploy/compose.local.yaml index eadc59e..ff17d41 100644 --- a/infra/deploy/compose.local.yaml +++ b/infra/deploy/compose.local.yaml @@ -11,6 +11,7 @@ services: MYSQL_USER: lehuo TZ: Asia/Shanghai volumes: + - ../mysql-config:/etc/mysql/conf.d:ro - mysql-data:/var/lib/mysql healthcheck: test: ['CMD-SHELL', 'mysqladmin ping -h 127.0.0.1 -u root -proot-lehuo-2026 --silent'] @@ -43,7 +44,7 @@ services: environment: APP_ENV: demo API_PORT: '3000' - DATABASE_URL: mysql://lehuo:***@mysql:3306/lehuo?allowPublicKeyRetrieval=true&useSSL=false + DATABASE_URL: mysql://lehuo:change-me-local-only@mysql:3306/lehuo?allowPublicKeyRetrieval=true&useSSL=false&connectionLimit=10 REDIS_URL: redis://redis:6379 SESSION_SECRET: lehuo-local-session-secret-2026 SESSION_TOKEN_PEPPER: lehuo-local-token-pepper-2026