Skip to content

Fix unstructured API config and update Docker setup#15

Merged
kAYI0019 merged 2 commits into
developfrom
fix/unstructured-config-and-docker
Aug 17, 2025
Merged

Fix unstructured API config and update Docker setup#15
kAYI0019 merged 2 commits into
developfrom
fix/unstructured-config-and-docker

Conversation

@kAYI0019

Copy link
Copy Markdown
Member

Overview

Restore unstructured API functionality and update Docker configuration for smooth service setup.

Key Changes

  • Add UNSTRUCTURED_MEMORY_FREE_MINIMUM_MB to unstructured-api
  • Hardcode MinIO access key and secret
  • Update OPENCONTEXT_CORE_URL and service names to open-context-core
  • Fix unstructured API config key (unstructured.base-urlapp.unstructured.api.url) to ensure proper connection

These changes ensure the application starts correctly and connects to dependencies without err

- add UNSTRUCTURED_MEMORY_FREE_MINIMUM_MB to unstructured-api service
- set MinIO access key/secret to hardcoded values
- update OPENCONTEXT_CORE_URL and service names to open-context-core
- change `unstructured.base-url` to `app.unstructured.api.url` so service connects properly
@kAYI0019
kAYI0019 requested a review from Copilot August 17, 2025 12:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR restores unstructured API functionality and updates Docker configuration for proper service setup. The changes fix configuration keys, hardcode MinIO credentials for local development, and update service references to use the correct names.

  • Fixed unstructured API configuration key structure for proper application binding
  • Updated service references from mock server to actual core service
  • Added memory configuration for unstructured API service

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
docker-compose.yml Added memory limit for unstructured API, hardcoded MinIO credentials, and updated service references to open-context-core
core/src/main/resources/application-docker.yml Fixed unstructured API configuration structure from flat to nested property binding

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread docker-compose.yml
- MINIO_ACCESS_KEY=${MINIO_ROOT_USER:-your-minio-access-key}
- MINIO_SECRET_KEY=${MINIO_ROOT_PASSWORD:-your-minio-secret-key}
- MINIO_ACCESS_KEY=minioadmin
- MINIO_SECRET_KEY=minioadmin123!

Copilot AI Aug 17, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hardcoding default credentials in Docker Compose poses a security risk. Consider using environment variables or Docker secrets, especially if this configuration might be used in non-development environments.

Suggested change
- MINIO_SECRET_KEY=minioadmin123!
- MINIO_ACCESS_KEY=${MINIO_ACCESS_KEY}
- MINIO_SECRET_KEY=${MINIO_SECRET_KEY}

Copilot uses AI. Check for mistakes.
Comment thread docker-compose.yml
- MINIO_ACCESS_KEY=${MINIO_ROOT_USER:-your-minio-access-key}
- MINIO_SECRET_KEY=${MINIO_ROOT_PASSWORD:-your-minio-secret-key}
- MINIO_ACCESS_KEY=minioadmin
- MINIO_SECRET_KEY=minioadmin123!

Copilot AI Aug 17, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hardcoding default credentials in Docker Compose poses a security risk. Consider using environment variables or Docker secrets, especially if this configuration might be used in non-development environments.

Suggested change
- MINIO_SECRET_KEY=minioadmin123!
- MINIO_SECRET_KEY=${MINIO_SECRET_KEY}

Copilot uses AI. Check for mistakes.
@kAYI0019
kAYI0019 merged commit 3c0ef5d into develop Aug 17, 2025
@Yoo-SH Yoo-SH mentioned this pull request Aug 21, 2025
53 tasks
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