chore: update docker-compose.yml
This commit is contained in:
16
.env.example
Normal file
16
.env.example
Normal 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. 敏感信息请勿提交到版本控制系统
|
||||
Reference in New Issue
Block a user