-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.postgres.yml
More file actions
30 lines (29 loc) · 944 Bytes
/
docker-compose.postgres.yml
File metadata and controls
30 lines (29 loc) · 944 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
# ── PostgreSQL Development Stack ────────────────────────────────────
# Use this compose file when running Promptly with PostgreSQL instead of MongoDB.
#
# Usage:
# docker compose -f docker-compose.postgres.yml up -d
#
# Backend must be started with the postgres profile:
# PROMPTLY_PERSISTENCE_TYPE=sql SPRING_PROFILES_ACTIVE=postgres mvn spring-boot:run -Ppersistence-sql
#
services:
postgres:
image: pgvector/pgvector:pg17
container_name: promptly-postgres
ports:
- "5432:5432"
environment:
POSTGRES_DB: promptly
POSTGRES_USER: promptly
POSTGRES_PASSWORD: promptly
volumes:
- promptly-pg-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U promptly -d promptly"]
interval: 10s
timeout: 5s
retries: 5
start_period: 15s
volumes:
promptly-pg-data: