From 9be6521fd08be9446291d5c7b450b52e25326bc0 Mon Sep 17 00:00:00 2001 From: claw_bot Date: Mon, 9 Mar 2026 09:30:52 +0000 Subject: [PATCH] =?UTF-8?q?refactor:=20docker-compose.yml=E4=BB=8E.env?= =?UTF-8?q?=E8=AF=BB=E5=8F=96=E9=85=8D=E7=BD=AE=EF=BC=8C=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 204b689..4dafd35 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,20 +9,15 @@ services: ports: - "7040:8080" environment: - - ASPNETCORE_ENVIRONMENT=Production - # 外部 MySQL 连接配置(自行修改) - - ConnectionStrings__Default=server=你的MySQL地址;Database=assetmanager;Uid=你的用户名;Pwd=你的密码;CharSet=utf8mb4;Allow User Variables=true; - # JWT 配置 - - Jwt__SecretKey=your-strong-secret-key-here-change-in-production - - Jwt__Issuer=AssetManager - - Jwt__Audience=AssetManager - # 微信配置 - - Wechat__AppId=wx245f0f3ebcfcf5a7 - - Wechat__AppSecret=809c740129bc8b434177ce12ef292dd0 - # Tiingo API 配置 - - Tiingo__ApiKey=bd00fee76d3012b047473078904001b33322cb46 - # 时区 - - TZ=Asia/Shanghai + - ASPNETCORE_ENVIRONMENT=${ASPNETCORE_ENVIRONMENT:-Production} + - ConnectionStrings__Default=${ConnectionStrings__Default} + - Jwt__SecretKey=${Jwt__SecretKey} + - Jwt__Issuer=${Jwt__Issuer:-AssetManager} + - Jwt__Audience=${Jwt__Audience:-AssetManager} + - Wechat__AppId=${Wechat__AppId} + - Wechat__AppSecret=${Wechat__AppSecret} + - Tiingo__ApiKey=${Tiingo__ApiKey} + - TZ=${TZ:-Asia/Shanghai} volumes: - logs:/app/logs