# Development mode - only start database and cache services: # PostgreSQL with pgvector db: image: pgvector/pgvector:pg16 container_name: zhagent-db restart: always environment: POSTGRES_DB: maxkb POSTGRES_USER: postgres POSTGRES_PASSWORD: ${DB_PASSWORD:-zhagent123} ports: - "5432:5432" volumes: - ./data/postgresql:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 10s timeout: 5s retries: 5 # Redis redis: image: redis:7-alpine container_name: zhagent-redis restart: always ports: - "6379:6379" volumes: - ./data/redis:/data healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 10s timeout: 5s retries: 5