publish Gitea through the FRP endpoint
This commit is contained in:
parent
de0af51d42
commit
1221bb5ead
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user