This commit is contained in:
30
docker-compose.override.yml.example
Normal file
30
docker-compose.override.yml.example
Normal file
@@ -0,0 +1,30 @@
|
||||
# Docker Compose 覆盖配置示例
|
||||
# 复制此文件为 docker-compose.override.yml 并修改相应的值
|
||||
# docker-compose 会自动合并 docker-compose.yml 和 docker-compose.override.yml
|
||||
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
petwash-api:
|
||||
environment:
|
||||
# 覆盖数据库连接字符串
|
||||
- ConnectionStrings__DefaultConnection=Server=101.132.182.216;Database=petwash;User=root;Password=YOUR_PASSWORD;Port=3306;CharSet=utf8mb4;
|
||||
|
||||
# 自定义日志级别
|
||||
- Logging__LogLevel__Default=Debug
|
||||
- Logging__LogLevel__Microsoft.AspNetCore=Information
|
||||
|
||||
# MQTT 配置(如果需要)
|
||||
# - Mqtt__Broker=mqtt.example.com
|
||||
# - Mqtt__Port=1883
|
||||
# - Mqtt__Username=your_username
|
||||
# - Mqtt__Password=your_password
|
||||
|
||||
# 自定义端口映射
|
||||
ports:
|
||||
- "5000:80"
|
||||
|
||||
# 挂载卷(用于日志或配置)
|
||||
# volumes:
|
||||
# - ./logs:/app/logs
|
||||
# - ./appsettings.Production.json:/app/appsettings.Production.json:ro
|
||||
Reference in New Issue
Block a user