Files
claim-guard-be/docker-compose.yml

27 lines
667 B
YAML

version: '3.8'
services:
postgres:
image: pgvector/pgvector:pg17
container_name: claim-guard-postgres
restart: unless-stopped
environment:
POSTGRES_DB: claim_guard
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres123
ports:
- '5433:5432' # host:container → akses dari host pakai port 5433
volumes:
- postgres_data:/var/lib/postgresql/data
- ./docker/postgres/init:/docker-entrypoint-initdb.d
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres -d claim_guard']
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
volumes:
postgres_data:
driver: local