From dbe80ae79bbd0af8e4de378913d4ec3a892b2f50 Mon Sep 17 00:00:00 2001 From: zhao Date: Sat, 31 May 2025 09:33:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Gitea?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhao --- Gitea | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Gitea b/Gitea index 51362a7..e9b7001 100644 --- a/Gitea +++ b/Gitea @@ -9,6 +9,7 @@ services: environment: - USER_UID=1000 - USER_GID=1000 + - TZ=Asia/Shanghai # 设置容器时区(推荐) - GITEA__database__DB_TYPE=postgres - GITEA__database__HOST=db:5432 - GITEA__database__NAME=gitea @@ -19,8 +20,6 @@ services: - gitea volumes: - ./gitea:/data - - /etc/timezone:/etc/timezone:ro - - /etc/localtime:/etc/localtime:ro ports: - "3000:3000" - "222:22" @@ -31,6 +30,7 @@ services: image: docker.io/library/postgres:14 restart: always environment: + - TZ=Asia/Shanghai # 数据库时区同步 - POSTGRES_USER=gitea - POSTGRES_PASSWORD=gitea - POSTGRES_DB=gitea