Files
Catalogue_pos_nearle/docker-compose.yml
2026-08-10 10:54:58 +05:30

42 lines
1.4 KiB
YAML

# Optional: one-command local Postgres + pgvector for development.
#
# If you already have a Postgres + pgvector instance running somewhere
# (e.g. a managed/remote server you used with the original project), you
# do NOT need this - just point backend/.env at it instead.
#
# Ollama is intentionally NOT included here: install it natively on the
# host (see docs) so it can use your CPU efficiently without an extra
# container layer, and so `ollama pull` model files persist outside Docker.
#
# Usage:
# docker compose up -d
# # then in backend/.env: DB_HOST=localhost, DB_PORT=5432, DB_NAME=pgvector,
# # DB_USER=postgres, DB_PASSWORD=<the value you set below>
#
version: "3.9"
services:
postgres:
image: pgvector/pgvector:pg16
container_name: catalog_rag_postgres
restart: unless-stopped
environment:
POSTGRES_DB: pgvector
POSTGRES_USER: postgres
# Override this in a local .env file next to this compose file
# (docker compose auto-loads .env) or export POSTGRES_PASSWORD
# before running `docker compose up`. Do not commit a real value.
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
ports:
- "5432:5432"
volumes:
- catalog_rag_pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 10
volumes:
catalog_rag_pgdata: