From 745ffa80f2659007c9e65f26606407005977dfc8 Mon Sep 17 00:00:00 2001 From: Alex Tavarez Date: Sat, 6 Dec 2025 10:35:34 -0500 Subject: [PATCH] Added IPv6 capability and changed user IDs for gitea to use git user --- compose.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/compose.yml b/compose.yml index 11a65dc..6db2908 100644 --- a/compose.yml +++ b/compose.yml @@ -2,8 +2,12 @@ networks: frontend: driver: bridge + enable_ipv6: true + enable_ipv4: true backend: driver: bridge + enable_ipv6: true + enable_ipv4: true # volumes: # grocy.vol: secrets: @@ -13,18 +17,21 @@ services: gitea: image: docker.gitea.com/gitea:latest container_name: gitea - # environment: - # - USER_UID=$(id -u $USER) - # - USER_GID=$(id -u $USER) + environment: + - USER_UID=$(id -u git) + - USER_GID=$(id -u git) restart: always networks: - frontend volumes: - ~/.storage/containers/gitea.vol:/data + - /home/git/.ssh:/data/git/.ssh - /etc/localtime:/etc/localtime:ro ports: - - 3000:3000 - - 2222:2222 + - 0.0.0.0:3000:3000 + - "[::]:3000:3000" + - 127.0.0.1:2222:22 + - "[::1]:22:22" opengist: image: ghcr.io/thomiceli/opengist:latest container_name: opengist @@ -38,9 +45,8 @@ services: - /etc/localtime:/etc/localtime:ro environment: OG_LOG_LEVEL: warn - OG_SSH_PORT: 22 - UID: $(id -u $USER) - GID: $(id -u $USER) + UID: $(id -u git) + GID: $(id -u git) networks: - frontend # @TODO the below services are in the future meant to be in a LAN homeserver or tailscale/headscale exit node