Files
wechat_backend/docker-compose.test.yml
王宏豪 faa114503f feat(api): 修改oss
- 替换开发环境API基础URL为本地服务地址
- 实现签名URL本地缓存机制,解决微信按URL缓存图片导致重复下载问题
- 添加缓存清理功能,包括过期清理和按需删除特定缓存项
- 集成阿里云OSS上传功能,支持直传减少服务器带宽占用
- 优化头像地址处理逻辑,统一使用签名缓存避免地址频繁变化
- 移除过时的OSS上传示例文件oss-upload.js
- 更新课程页面实现跳转第三方小程序功能
- 调整打卡记录图片地址获取方式,统一使用新的签名缓存逻辑
- 优化图片上传流程,增加压缩处理和批量上传支持
- 完善认证模块中的缓存清理逻辑,切换账号时清除相关图片缓存
- 添加后端环境变量配置模板和代理文档说明
2026-10-10 10:27:00 +08:00

30 lines
1.1 KiB
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.
# ============================================================
# 明缘云道场 · 后端 测试环境(端口 8000)
# 与生产完全隔离:独立容器名、独立端口、独立 .env.test(测试库 mys_info_test)
# 用法:
# docker compose -f docker-compose.test.yml build
# docker compose -f docker-compose.test.yml up -d
# ============================================================
services:
clock-api:
build: .
image: clock-api:test
container_name: clock-api-test
network_mode: host
restart: unless-stopped
env_file:
- .env.test # 测试环境变量(MYSQL_DB=mys_info_test 等)
environment:
- TZ=Asia/Shanghai
- PORT=8000
volumes:
# 反馈/投票如需与生产隔离,请把挂载点改到独立目录,并同步改 .env.test 里的
# FEEDBACK_DIR / COURSE_VOTES_FILE。否则与生产共享这两份数据。
- /home/introduction/feedback:/home/introduction/feedback
- /home/introduction/test/course_votes.json:/home/introduction/test/course_votes.json
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"