diff --git a/templates/docker-compose-gitea.yml.tpl b/templates/docker-compose-gitea.yml.tpl index 2f2ffec..2caa8be 100644 --- a/templates/docker-compose-gitea.yml.tpl +++ b/templates/docker-compose-gitea.yml.tpl @@ -3,6 +3,8 @@ # DATA_PATH is host-specific (UNRAID_GITEA_DATA_PATH or FEDORA_GITEA_DATA_PATH) # DB_SERVICE block is stripped for sqlite3, kept for mysql/postgres/mssql. # INTERNAL_NET blocks are also stripped for sqlite3 (no DB = no internal network). +# DNS_OVERRIDE block is stripped for Unraid (br0 inherits host DNS). +# MIRROR_HOSTS block is stripped for Unraid (primary doesn't mirror from anywhere). version: "3" @@ -48,6 +50,14 @@ ${DB_ENV_VARS} # INTERNAL_NET_REF_START gitea-internal: # INTERNAL_NET_REF_END +# DNS_OVERRIDE_START + dns: + - ${GITEA_DNS_SERVER} +# DNS_OVERRIDE_END +# MIRROR_HOSTS_START + extra_hosts: + - "${GITEA_MIRROR_SOURCE_HOST}:${GITEA_MIRROR_SOURCE_IP}" +# MIRROR_HOSTS_END healthcheck: test: ["CMD", "curl", "-sf", "http://localhost:3000/api/v1/version"] interval: 30s