2025.04.09

This commit is contained in:
2025-04-09 23:36:36 +02:00
commit a8f03b1d60
2 changed files with 76 additions and 0 deletions

View File

@ -0,0 +1,26 @@
# mkdir -p /opt/stack/gitea/{data,ssh}
#In order to allow SSH key authentication with Gitea, youll need to create an empty
#authorized keys file that Gitea will use for persistent key storage.
# touch /opt/stack/gitea/ssh/authorized_keys
# Next, change the permissions on this file so that its read+write for the owner only.
# chmod 600 /opt/stack/gitea/ssh/authorized_keys
services:
server:
image: gitea/gitea:latest
container_name: gitea
restart: unless-stopped
environment:
- USER_UID=1000
- USER_GID=1000
volumes:
- ./data:/data
- ./ssh:/data/git/.ssh
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "222:22"