Skip to content

Add docker-compose setup for OrbStack/Docker + a local OpenAI-compatible LLM - #3

Open
stanleyu911 wants to merge 1 commit into
qwshen:mainfrom
stanleyu911:feat/docker-compose-orbstack-setup
Open

Add docker-compose setup for OrbStack/Docker + a local OpenAI-compatible LLM#3
stanleyu911 wants to merge 1 commit into
qwshen:mainfrom
stanleyu911:feat/docker-compose-orbstack-setup

Conversation

@stanleyu911

Copy link
Copy Markdown

Summary

  • Adds docker-compose.yml with two services: pgvector (Postgres + pgvector) and rag-api (built from the existing Dockerfile), with local-documents/ bind-mounted for local ingestion and host.docker.internal wired up to reach an OpenAI-compatible LLM server (e.g. LM Studio) running natively on the host.
  • resources/application.env/definition.json are project-specific and gitignored; adds .example templates instead so the compose build works out of the box.
  • resources/certs/.gitkeep keeps the directory the Dockerfile's COPY step requires present.

Test plan

  • Built and ran the full stack via docker compose up -d --build against local pgvector + a local OpenAI-compatible LLM server.
  • Verified document ingestion from the bind-mounted folder and end-to-end /completion//search//history requests.

…ble LLM

Adds a docker-compose.yml running two services:
- pgvector: Postgres with the pgvector extension, for the vector store
- rag-api: built from the existing Dockerfile, with local-documents/
  bind-mounted in for local knowledge-base ingestion, and
  host.docker.internal wired up so the container can reach an
  OpenAI-compatible LLM server (e.g. LM Studio, or any other
  OpenAI-compatible local server) running natively on the host.

resources/application.env and resources/definition.json are
project-specific (real tokens, DB credentials, model names) and are
gitignored. resources/application.env.example and
resources/definition.json.example are added instead, as copy-and-fill-in
templates so the compose build works out of the box - the .example
files use langchain_openai.ChatOpenAI/OpenAIEmbeddings pointed at a
generic OpenAI-compatible endpoint. resources/certs/.gitkeep keeps the
otherwise-empty directory present, since the Dockerfile's
"COPY ./resources/certs ./certs" step requires it to exist.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012uwq94g5qTJmrQyRnib67P
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.

1 participant