26 lines
737 B
YAML
26 lines
737 B
YAML
# 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’s 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" |