-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.pgvector.yml
More file actions
42 lines (38 loc) · 962 Bytes
/
docker-compose.pgvector.yml
File metadata and controls
42 lines (38 loc) · 962 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
41
42
version: '3.8'
services:
postgres:
image: ankane/pgvector:latest
container_name: genie-postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-change_me_in_production}
POSTGRES_DB: genie_cache
ports:
- "5432:5432"
volumes:
- pgvector_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
# Optional: pgAdmin for database management
pgadmin:
image: dpage/pgadmin4:latest
container_name: genie-pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: admin@example.com
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_PASSWORD:-admin}
PGADMIN_LISTEN_PORT: 5050
ports:
- "5050:5050"
depends_on:
- postgres
restart: unless-stopped
volumes:
pgvector_data:
driver: local
networks:
default:
name: genie-network