Files
HomeLAB/Docker/Gitea/docker-compose.yaml

26 lines
737 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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 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"