feat: 添加Docker配置,集成my_oss图片服务

This commit is contained in:
Cuishibing
2026-04-26 20:44:55 +08:00
parent 9263f7f460
commit 0c03f95729
4 changed files with 66 additions and 7 deletions

View File

@@ -1,11 +1,11 @@
import mysql from 'mysql2/promise';
const pool = mysql.createPool({
host: '192.168.0.196',
port: 3306,
user: 'smalltown',
password: 'MyPassword1+',
database: 'smalltown',
host: process.env.DB_HOST || '192.168.0.196',
port: parseInt(process.env.DB_PORT || '3306'),
user: process.env.DB_USER || 'smalltown',
password: process.env.DB_PASSWORD || 'MyPassword1+',
database: process.env.DB_NAME || 'smalltown',
waitForConnections: true,
connectionLimit: 10,
queueLimit: 0