Added IPv6 capability and changed user IDs for gitea to use git user
This commit is contained in:
22
compose.yml
22
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
|
||||
|
||||
Reference in New Issue
Block a user