Skip to content

chore(docker): parse ES address from config in run.sh health check#86

Merged
fanzu8 merged 1 commit intoccfos:mainfrom
kongfei605:run_fix
Dec 16, 2025
Merged

chore(docker): parse ES address from config in run.sh health check#86
fanzu8 merged 1 commit intoccfos:mainfrom
kongfei605:run_fix

Conversation

@kongfei605
Copy link
Copy Markdown
Contributor

Previously, the startup script run.sh hardcoded the Elasticsearch health check to localhost:9200. This caused container startup failures when a remote ES address was configured in huatuo-bamai.conf.
This change updates run.sh to:

  • Attempt to parse the Address field from the [Storage.ES] section of huatuo-bamai.conf.
  • Use the configured address for the health check if found.
  • Fall back to the existing ELASTICSEARCH_HOST environment variable logic if no config is found.

@fanzu8 fanzu8 merged commit 70251a3 into ccfos:main Dec 16, 2025
@kongfei605 kongfei605 deleted the run_fix branch December 16, 2025 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants