-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpostgres-compose.yml
More file actions
40 lines (37 loc) · 905 Bytes
/
postgres-compose.yml
File metadata and controls
40 lines (37 loc) · 905 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
34
35
36
37
38
39
40
name: docs2db
services:
db:
container_name: docs2db-db
profiles: ["prod"]
image: docker.io/pgvector/pgvector:pg17
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: ragdb
ports:
- 5432:5432
volumes:
- pgdata:/var/lib/postgresql/data
test-db:
# Test database (only runs with --profile test)
container_name: docs2db-test-db
profiles: ["test"]
image: docker.io/pgvector/pgvector:pg17
restart: always
environment:
POSTGRES_USER: test_user
POSTGRES_PASSWORD: test_password
POSTGRES_DB: test_docs2db
ports:
- 5433:5432
volumes:
- test_pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U test_user -d test_docs2db"]
interval: 5s
timeout: 5s
retries: 5
volumes:
pgdata:
test_pgdata: