-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.postgres.yml
More file actions
33 lines (30 loc) · 925 Bytes
/
Copy pathdocker-compose.postgres.yml
File metadata and controls
33 lines (30 loc) · 925 Bytes
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
version: "3.9"
# docker-compose.postgres.yml — pgvector-enabled Postgres for local development
# and testing of the `postgres` storage backend (Phase 102).
#
# Usage:
# docker compose -f docker-compose.postgres.yml up -d
# export GITSEMA_STORAGE_BACKEND=postgres
# export GITSEMA_STORAGE_METADATA_URL=postgres://gitsema:gitsema@localhost:5433/gitsema
#
# To run the Postgres-gated test suite:
# export GITSEMA_TEST_POSTGRES_URL=postgres://gitsema:gitsema@localhost:5433/gitsema
# pnpm test -- postgres
services:
postgres:
image: pgvector/pgvector:pg16
environment:
POSTGRES_USER: gitsema
POSTGRES_PASSWORD: gitsema
POSTGRES_DB: gitsema
ports:
- "5433:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U gitsema"]
interval: 5s
timeout: 5s
retries: 10
volumes:
- gitsema_postgres:/var/lib/postgresql/data
volumes:
gitsema_postgres: