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