chore: update docker-compose.yml

This commit is contained in:
2025-11-28 13:54:41 +08:00
parent ad955403fb
commit 03bb1063ad
4 changed files with 128 additions and 30 deletions

16
.env.example Normal file
View File

@@ -0,0 +1,16 @@
# 数据库连接配置
DB_HOST=host.docker.internal
DB_PORT=3306
DB_USER=your_database_username
DB_PASSWORD=your_database_password
DB_NAME=your_database_name
# API配置
ADMIN_API_KEY=sk-admin-xxxxxxxxxxxxxxxx
PORT=8080
# 注意:
# 1. 生产环境中请替换所有占位符为实际值
# 2. DB_HOST使用host.docker.internal可以让Docker容器连接到宿主机的MySQL
# 3. 确保MySQL用户权限允许从Docker容器访问
# 4. 敏感信息请勿提交到版本控制系统