2025.04.10
This commit is contained in:
26
Docker/gitea/docker-compose.yaml
Normal file
26
Docker/gitea/docker-compose.yaml
Normal file
@ -0,0 +1,26 @@
|
||||
# mkdir -p /opt/stack/gitea/{data,ssh}
|
||||
|
||||
# In order to allow SSH key authentication with Gitea, you 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 it is 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"
|
Reference in New Issue
Block a user