-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
30 lines (28 loc) · 799 Bytes
/
docker-compose.yml
File metadata and controls
30 lines (28 loc) · 799 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
# PortOS Docker Services
# PostgreSQL + pgvector for scalable memory storage
#
# Usage:
# docker compose up -d # Start services
# docker compose down # Stop services
# docker compose logs -f db # View database logs
services:
db:
image: pgvector/pgvector:pg17
container_name: portos-db
restart: unless-stopped
ports:
- "${PGPORT_DOCKER:-5561}:5432"
environment:
POSTGRES_DB: portos
POSTGRES_USER: portos
POSTGRES_PASSWORD: ${PGPASSWORD:-portos}
volumes:
- portos-pgdata:/var/lib/postgresql/data
- ./server/scripts/init-db.sql:/docker-entrypoint-initdb.d/01-init.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U portos"]
interval: 5s
timeout: 3s
retries: 5
volumes:
portos-pgdata: