fix: 为 management-backend 和 admin-backend 服务添加时区变量,解决docker容器中,时区错误问题。

- 在 docker-compose.yml 文件中,为 management-backend 和 admin-backend 服务添加了 TZ 环境变量
- 该变量的值将从 .env 文件中的 TIMEZONE 变量获取
This commit is contained in:
zstar 2025-06-01 21:05:38 +08:00
parent 401e3d81c4
commit d0f17da9b4
1 changed files with 3 additions and 1 deletions

View File

@ -40,7 +40,8 @@ services:
- management-backend
env_file: .env
environment:
- API_BASE_URL=/api
- API_BASE_URL=/api
- TZ=${TIMEZONE}
networks:
- ragflow
restart: on-failure
@ -67,6 +68,7 @@ services:
- MANAGEMENT_ADMIN_USERNAME=${MANAGEMENT_ADMIN_USERNAME:-admin}
- MANAGEMENT_ADMIN_PASSWORD=${MANAGEMENT_ADMIN_PASSWORD:-12345678}
- MANAGEMENT_JWT_SECRET=${MANAGEMENT_JWT_SECRET:-12345678}
- TZ=${TIMEZONE}
networks:
- ragflow
restart: on-failure