brain / src /lib /postgresql /docker-compose.yaml
Leon4gr45's picture
Upload folder using huggingface_hub (part 3)
a55ea57 verified
Raw History Blame Contribute Delete
879 Bytes
services:
postgres:
image: pgvector/pgvector:pg16
container_name: postgres
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d brainapi"]
interval: 5s
timeout: 5s
retries: 10
pgadmin:
image: dpage/pgadmin4:latest
container_name: pgadmin
restart: always
ports:
- "8082:80"
environment:
PGADMIN_DEFAULT_EMAIL: admin@brainapi.local
PGADMIN_DEFAULT_PASSWORD: admin
PGADMIN_CONFIG_SERVER_MODE: "False"
volumes:
- pgadmin-data:/var/lib/pgadmin
depends_on:
postgres:
condition: service_healthy
volumes:
postgres-data:
driver: local
pgadmin-data:
driver: local