From 1221bb5ead9603768df0a7a91f525890dc0934bc Mon Sep 17 00:00:00 2001 From: git-bridge Date: Fri, 17 Jul 2026 15:24:46 +0000 Subject: [PATCH] publish Gitea through the FRP endpoint --- docker-compose.yaml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 9552bb2..239b91f 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -46,11 +46,12 @@ services: GITEA__database__USER: gitea GITEA__database__PASSWD__FILE: /run/secrets/gitea_db_password GITEA__database__SSL_MODE: disable - GITEA__server__DOMAIN: localhost - GITEA__server__ROOT_URL: http://localhost:13000/ - GITEA__server__SSH_DOMAIN: localhost - GITEA__server__SSH_PORT: 2223 - GITEA__service__REQUIRE_SIGNIN_VIEW: "true" + GITEA__server__DOMAIN: gitea.xyslh.xyz + GITEA__server__ROOT_URL: https://gitea.xyslh.xyz/ + GITEA__server__SSH_DOMAIN: gitea.xyslh.xyz + GITEA__server__SSH_PORT: 2222 + GITEA__server__PROTOCOL: http + GITEA__service__REQUIRE_SIGNIN_VIEW: "false" GITEA__service__DISABLE_REGISTRATION: "true" GITEA__security__INSTALL_LOCK: "true" depends_on: @@ -63,8 +64,8 @@ services: - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro ports: - - "127.0.0.1:13000:3000" - - "127.0.0.1:2223:22" + - "13000:3000" + - "2223:22" healthcheck: test: ["CMD-SHELL", "grep -Eq '^INSTALL_LOCK[[:space:]]*=[[:space:]]*true' /data/gitea/conf/app.ini && grep -Eq '^DB_TYPE[[:space:]]*=[[:space:]]*postgres' /data/gitea/conf/app.ini && wget -q --spider http://127.0.0.1:3000/api/healthz"] interval: 5s