Update Gitea/gitea.yml

This commit is contained in:
yun9lin9 committed 2026-10-07 10:39:13 +00:00
1 parent 03b5fa3f3f
commit 36d7d6b65f
1 file changed
+10 -4
+10 -4
View File
@@ -7,16 +7,22 @@ services:
image: docker.gitea.com/gitea:28.0.0
container_name: gitea
environment:
- USER_UID=1012
- USER_GID=1012
- USER_UID=1000
- USER_GID=1000
- GITEA__server__ROOT_URL=https://git.szrvol-02.netcraze.pro/
- GITEA__server__DOMAIN=git.szrvol-02.netcraze.pro
- GITEA__server__DISABLE_SSH=true # <-- ДОБАВЛЕНО: скрывает SSH из интерфейса
- GITEA__security__REVERSE_PROXY_LIMIT=1
- GITEA__security__REVERSE_PROXY_TRUSTED_PROXIES=*
restart: always
networks:
- gitea
volumes:
- /Volume1/docker/git/data:/data
- /opt/docker/git/data:/data
- /opt/docker/git/config:/config
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3003:3000"
- "3006:3000"
# Порт 2002 можно оставить для локальной сети, но извне он не доступен
- "2002:22"