File size: 777 Bytes
e41454f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# Local PostgreSQL + pgvector for FedInsight.
#
#   docker compose up -d        # start the database
#   docker compose down         # stop it (keeps data in the named volume)
#   docker compose down -v      # stop and DELETE all data
#
# Connection defaults match .env.example:
#   postgresql://postgres:postgres@localhost:5432/fedinsight
services:
  db:
    image: pgvector/pgvector:pg16
    container_name: fedinsight-pg
    environment:
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: postgres
      POSTGRES_DB: fedinsight
    ports:
      - "5432:5432"
    volumes:
      - pgdata:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U postgres -d fedinsight"]
      interval: 5s
      timeout: 5s
      retries: 10

volumes:
  pgdata: