server/gitea/compose.yml

27 lines
584 B
YAML

services:
gitea:
image: gitea/gitea:latest-rootless
restart: unless-stopped
env-file: ".env"
restart: always
networks:
- gitea
- caddy
volumes:
- ./volumes/gitea/data:/var/lib/gitea
- ./volumes/gitea/config:/etc/gitea
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
# allows ssh pushing via locally stored keys
- /home/git/.ssh:/data/git/.ssh
ports:
- "127.0.0.1:2222:22"
depends_on:
db:
condition: service_healthy
networks:
gitea-net:
external: false