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
+15 -9
+15 -9
View File
@@ -7,16 +7,22 @@ services:
image: docker.gitea.com/gitea:28.0.0 image: docker.gitea.com/gitea:28.0.0
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=1012 - USER_UID=1000
- USER_GID=1012 - USER_GID=1000
- GITEA__server__ROOT_URL=https://git.szrvol-02.netcraze.pro/ - 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 restart: always
networks: networks:
- gitea - gitea
volumes: volumes:
- /Volume1/docker/git/data:/data - /opt/docker/git/data:/data
- /etc/timezone:/etc/timezone:ro - /opt/docker/git/config:/config
- /etc/localtime:/etc/localtime:ro - /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports: ports:
- "3003:3000" - "3006:3000"
- "2002:22" # Порт 2002 можно оставить для локальной сети, но извне он не доступен
- "2002:22"