Added IPv6 capability and changed user IDs for gitea to use git user

This commit is contained in:
2025-12-06 10:35:34 -05:00
parent a9b2f078d0
commit 745ffa80f2

View File

@@ -2,8 +2,12 @@
networks: networks:
frontend: frontend:
driver: bridge driver: bridge
enable_ipv6: true
enable_ipv4: true
backend: backend:
driver: bridge driver: bridge
enable_ipv6: true
enable_ipv4: true
# volumes: # volumes:
# grocy.vol: # grocy.vol:
secrets: secrets:
@@ -13,18 +17,21 @@ services:
gitea: gitea:
image: docker.gitea.com/gitea:latest image: docker.gitea.com/gitea:latest
container_name: gitea container_name: gitea
# environment: environment:
# - USER_UID=$(id -u $USER) - USER_UID=$(id -u git)
# - USER_GID=$(id -u $USER) - USER_GID=$(id -u git)
restart: always restart: always
networks: networks:
- frontend - frontend
volumes: volumes:
- ~/.storage/containers/gitea.vol:/data - ~/.storage/containers/gitea.vol:/data
- /home/git/.ssh:/data/git/.ssh
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
ports: ports:
- 3000:3000 - 0.0.0.0:3000:3000
- 2222:2222 - "[::]:3000:3000"
- 127.0.0.1:2222:22
- "[::1]:22:22"
opengist: opengist:
image: ghcr.io/thomiceli/opengist:latest image: ghcr.io/thomiceli/opengist:latest
container_name: opengist container_name: opengist
@@ -38,9 +45,8 @@ services:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
environment: environment:
OG_LOG_LEVEL: warn OG_LOG_LEVEL: warn
OG_SSH_PORT: 22 UID: $(id -u git)
UID: $(id -u $USER) GID: $(id -u git)
GID: $(id -u $USER)
networks: networks:
- frontend - frontend
# @TODO the below services are in the future meant to be in a LAN homeserver or tailscale/headscale exit node # @TODO the below services are in the future meant to be in a LAN homeserver or tailscale/headscale exit node