fix: update Docker Compose template to include Gitea network name variable
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# Gitea Docker Compose — rendered by phase1_gitea_unraid.sh and phase2_gitea_fedora.sh
|
||||
# Variables: GITEA_VERSION, DATA_PATH, GITEA_CONTAINER_IP
|
||||
# Variables: GITEA_VERSION, DATA_PATH, GITEA_CONTAINER_IP, GITEA_NETWORK_NAME
|
||||
# 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.
|
||||
|
||||
@@ -21,7 +21,7 @@ ${DB_ENV_VARS}
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
networks:
|
||||
gitea_net:
|
||||
${GITEA_NETWORK_NAME}:
|
||||
ipv4_address: ${DB_CONTAINER_IP}
|
||||
# DB_SERVICE_END
|
||||
|
||||
@@ -43,7 +43,7 @@ ${DB_ENV_VARS}
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
networks:
|
||||
gitea_net:
|
||||
${GITEA_NETWORK_NAME}:
|
||||
ipv4_address: ${GITEA_CONTAINER_IP}
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-sf", "http://localhost:3000/api/v1/version"]
|
||||
@@ -53,5 +53,5 @@ ${DB_ENV_VARS}
|
||||
start_period: 30s
|
||||
|
||||
networks:
|
||||
gitea_net:
|
||||
${GITEA_NETWORK_NAME}:
|
||||
external: true
|
||||
|
||||
Reference in New Issue
Block a user