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