Files
dorm-power-monitor/go/docker-compose.yml
fallensigh fe00d277ea chore: Docker 部署配置(多阶段构建+环境模板)
- 多阶段构建 → 6.2MB 镜像

- .env.example 环境模板, 敏感配置运行时注入

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-08-23 21:29:44 +08:00

23 lines
753 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
services:
electric-monitor:
build: .
container_name: electric-monitor
restart: unless-stopped
ports:
- "8000:8000"
environment:
# 账号密码与加密密钥必须通过 .env 注入(见 .env.example
LZU_USERNAME: "${LZU_USERNAME}"
LZU_PASSWORD: "${LZU_PASSWORD}"
LZU_SERVICE_ID: "${LZU_SERVICE_ID:-29615}"
XF_PLATFORM: "${XF_PLATFORM:-QHIT_EDU}"
XF_AUTH_APPID: "${XF_AUTH_APPID:-2606161276416311297}"
XF_SCHOOL_CODE: "${XF_SCHOOL_CODE:-10730}"
XF_YM_APPID: "${XF_YM_APPID:-1810181825222034}"
LZU_AES_KEY: "${LZU_AES_KEY}"
LZU_MD5_KEY: "${LZU_MD5_KEY}"
XF_CACHE_TTL: "${XF_CACHE_TTL:-518400}"
TZ: Asia/Shanghai
volumes:
- ./data:/app/data