Repository navigation
Expand file tree
/
Copy path.env.docker
More file actions
88 lines (81 loc) · 4.47 KB
/
Copy path.env.docker
File metadata and controls
88 lines (81 loc) · 4.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# ============================================================================
# docker-compose config. Services reach each other by compose service name
# (postgres, qdrant, rabbitmq). For host/local runs, see .env.
#
# NOTE: the chat Agent (laws-generate) is NOT run inside compose, so the
# "Agent / Chat LLM" vars (LLM_PROVIDER, OPENAI_*, OLLAMA_BASE_URL, OLLAMA_MODEL)
# live in .env, not here. This file only configures the pipeline workers.
# ============================================================================
# ── PostgreSQL ──
POSTGRES_HOST=postgres
POSTGRES_PORT=5432
POSTGRES_USER=embeddorium_user
POSTGRES_PASSWORD=embeddorium_pass
POSTGRES_DB=embeddorium_db
# ── Qdrant ──
QDRANT_URL=http://qdrant:6333
# ── RabbitMQ ──
RABBITMQ_HOST=rabbitmq
RABBITMQ_PORT=5672
RABBITMQ_MANAGEMENT_PORT=15672
RABBITMQ_USER=embeddorium_user2
RABBITMQ_PASSWORD=embeddorium_pass2
RABBITMQ_VHOST=/
# ============================================================================
# Embeddings — chunk-embedding pipeline (worker-embed-chunks).
# ============================================================================
# There is no EMBED_PROVIDER/embedding-model setting: providers (mock, ollama,
# openai) are created in the UI and snapshotted per pipeline run, and
# worker-embed-chunks embeds with exactly the provider its run recorded.
#
# The vars below only pre-fill the "new provider" form served by the `server`
# service. Because that form is filled in from a browser but *dialled* from
# inside the worker container, the default must be container-reachable — NOT
# http://localhost (each container has its own loopback). Use:
# - Ollama on the host (Mac/Windows Docker Desktop): http://host.docker.internal
# - Ollama as the `ollama` compose service (profile "ollama"): http://ollama
OLLAMA_URL=http://host.docker.internal
OLLAMA_PORT=11434
# ============================================================================
# Reranking — the optional cross-encoder stage of search (server, not a worker).
# ============================================================================
# A separate provider type from `ollama`, because Ollama serves NO rerank route
# on any path — a reranker pointed at :11434 404s on every search and degrades
# to the un-reranked ordering. Point these at a server speaking the Jina/Cohere
# rerank contract; locally that is llama.cpp, started on the host with:
#
# llama-server --reranking -m bge-reranker-v2-m3.gguf --host 0.0.0.0 --port 8012
#
# `--host 0.0.0.0` matters: bound to 127.0.0.1 it is unreachable from the
# containers. As with OLLAMA_URL, the default must be container-reachable —
# host.docker.internal for a server on the host (Mac/Windows Docker Desktop).
RERANKER_URL=http://host.docker.internal
RERANKER_PORT=8012
RERANKER_PATH=v1/rerank
# ============================================================================
# HTTP ports. To change one for the compose stack, set it in `.env` — compose
# interpolates ${SERVER_PORT}/${UI_PORT} in docker-compose.yml from there, not
# from this file (same as POSTGRES_PORT / RABBITMQ_PORT). docker-compose.yml
# then re-injects the interpolated UI_PORT onto the `server` and `ui` services'
# `environment:`, which takes precedence over the values below; these are the
# defaults for a container run without that wiring, and documentation.
# ============================================================================
# Port the FastAPI server listens on (and is published on).
SERVER_PORT=8000
# Port the vite dev server listens on (and is published on). The server also
# derives its dev CORS allowlist from it.
UI_PORT=5173
# ============================================================================
# MCP server (backend/mcp/) — exposes the RAG lifecycle as agent tools. It is a
# thin HTTP client of the `server` service; it talks to nothing else. These are
# also set on the `mcp` service's `environment:` in docker-compose.yml (which
# takes precedence); kept here for documentation.
# ============================================================================
# SERVER_URL must be reachable from INSIDE the mcp container — the FastAPI
# server is the `server` compose service, so use its service name, not localhost.
# Its port must match SERVER_PORT above (docker-compose.yml derives the `mcp`
# service's copy from ${SERVER_PORT}).
SERVER_URL=http://server:8000
# Port the MCP server listens on (streamable-HTTP, bound to 0.0.0.0). Agents in
# other containers connect at http://mcp:8080/mcp.
MCP_PORT=8080