services: # PostgreSQL Database with pgvector extension postgres: image: pgvector/pgvector:pg15 container_name: claim-guard-postgres restart: unless-stopped environment: POSTGRES_DB: claim_guard POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres123 ports: - '5432:5432' 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