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