.env.example and the README still told people to use pgCat on :6432, the exact setup that hangs on every parameterised query. With no prod and one backend instance there is nothing for a pooler to multiplex, and postgres-js already pools in-process, so DATABASE_URL now points at Postgres on :5432 in .env.example, dev-env.sh and drizzle.config.ts. prepare:false is kept in src/db/index.ts on purpose, so adding PgBouncer later (tested working) is a config change rather than a code change. The long measurement narrative in that file's comment is cut to the decision and the pointer to PLAN.md, where the numbers now live.
45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
# Local development dependencies for continuum-backend.
|
|
#
|
|
# Valkey rather than Redis on purpose: Redis 7.4+ is RSALv2/SSPL and 8.0+
|
|
# adds AGPLv3, none of which a closed-source commercial product can ship.
|
|
# Valkey is BSD-3-Clause and speaks the same RESP protocol, so both clients
|
|
# (`ioredis` here, the `redis` crate in continuum-ai-worker) are unchanged.
|
|
# See continuum-common/docs/LICENSES.md.
|
|
#
|
|
# No pooler anywhere for the MVP: DATABASE_URL points straight at Postgres on
|
|
# :5432 here and in .env.example. See src/db/index.ts for why not pgCat.
|
|
|
|
services:
|
|
valkey:
|
|
image: valkey/valkey:8-alpine
|
|
ports:
|
|
- "6379:6379"
|
|
command: ["valkey-server", "--appendonly", "yes"]
|
|
volumes:
|
|
- valkey-data:/data
|
|
healthcheck:
|
|
test: ["CMD", "valkey-cli", "ping"]
|
|
interval: 5s
|
|
retries: 5
|
|
|
|
postgres:
|
|
# pgvector/pgvector ships the extension prebuilt; the plain postgres
|
|
# image does not, and `frame_embeddings` needs it.
|
|
image: pgvector/pgvector:pg17
|
|
ports:
|
|
- "5432:5432"
|
|
environment:
|
|
POSTGRES_USER: continuum
|
|
POSTGRES_PASSWORD: continuum
|
|
POSTGRES_DB: continuum
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U continuum -d continuum"]
|
|
interval: 5s
|
|
retries: 5
|
|
|
|
volumes:
|
|
valkey-data:
|
|
postgres-data:
|