version: '3.8' services: # 后端 API 服务 api: build: . container_name: assetmanager-api restart: always ports: - "7040:8080" environment: - 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 volumes: logs: