version: "3" | |
services: | |
postgres: | |
image: ankane/pgvector:latest | |
environment: | |
POSTGRES_USER: ${DB_USER} | |
POSTGRES_PASSWORD: ${DB_PASS} | |
POSTGRES_DB: ${DB_NAME} | |
PGUSER: ${DB_USER} | |
healthcheck: | |
test: pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB | |
interval: 10s | |
timeout: 5s | |
retries: 5 | |
ports: | |
- "${DB_PORT}:5432" | |