Files
homelab-docs/apps/gitea/compose.yaml
2026-01-19 03:47:49 +00:00

29 lines
875 B
YAML

services:
server:
image: gitea/gitea:latest
container_name: gitea
restart: always
environment:
- GITEA__database__DB_TYPE=postgres
- GITEA__database__HOST=global_postgres:5432 # Point to the universal container
- GITEA__database__NAME=gitea
- GITEA__database__USER=gitea
- GITEA__database__PASSWD=check-password-in-keeper
# SSH configuration
- GITEA__server__START_SSH_SERVER=true
- GITEA__server__SSH_DOMAIN=git-ssh.davisdre.com
- GITEA__server__SSH_PORT=22
- GITEA__server__SSH_LISTEN_PORT=2222
- GITEA__server__ROOT_URL=https://git.davisdre.com/
- GITEA__repository__ENABLE_PUSH_CREATE_USER=true
- GITEA__repository__ENABLE_PUSH_CREATE_ORG=true
networks:
- db_network
- web_gateway
networks:
db_network:
external: true
web_gateway:
external: true