mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 08:21:39 -06:00
26 lines
622 B
YAML
26 lines
622 B
YAML
name: projectx-dev
|
|
|
|
services:
|
|
postgres:
|
|
image: pgvector/pgvector:pg16
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_USER: ${POSTGRES_USER:-projectx}
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-projectx}
|
|
POSTGRES_DB: ${POSTGRES_DB:-projectx}
|
|
POSTGRES_HOST_AUTH_METHOD: trust
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
- ./docker/postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U projectx"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
|
|
volumes:
|
|
postgres_data:
|