fix: add DNS and mirror hosts configuration for Unraid support
This commit is contained in:
@@ -3,6 +3,8 @@
|
|||||||
# DATA_PATH is host-specific (UNRAID_GITEA_DATA_PATH or FEDORA_GITEA_DATA_PATH)
|
# 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.
|
# 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).
|
# 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"
|
version: "3"
|
||||||
|
|
||||||
@@ -48,6 +50,14 @@ ${DB_ENV_VARS}
|
|||||||
# INTERNAL_NET_REF_START
|
# INTERNAL_NET_REF_START
|
||||||
gitea-internal:
|
gitea-internal:
|
||||||
# INTERNAL_NET_REF_END
|
# 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:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-sf", "http://localhost:3000/api/v1/version"]
|
test: ["CMD", "curl", "-sf", "http://localhost:3000/api/v1/version"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
|
|||||||
Reference in New Issue
Block a user