docker-compose.dev.yml 808 B

1234567891011121314151617181920212223242526272829303132333435
  1. # Development mode - only start database and cache
  2. services:
  3. # PostgreSQL with pgvector
  4. db:
  5. image: pgvector/pgvector:pg16
  6. container_name: zhagent-db
  7. restart: always
  8. environment:
  9. POSTGRES_DB: maxkb
  10. POSTGRES_USER: postgres
  11. POSTGRES_PASSWORD: ${DB_PASSWORD:-zhagent123}
  12. ports:
  13. - "5432:5432"
  14. volumes:
  15. - ./data/postgresql:/var/lib/postgresql/data
  16. healthcheck:
  17. test: ["CMD-SHELL", "pg_isready -U postgres"]
  18. interval: 10s
  19. timeout: 5s
  20. retries: 5
  21. # Redis
  22. redis:
  23. image: redis:7-alpine
  24. container_name: zhagent-redis
  25. restart: always
  26. ports:
  27. - "6379:6379"
  28. volumes:
  29. - ./data/redis:/data
  30. healthcheck:
  31. test: ["CMD", "redis-cli", "ping"]
  32. interval: 10s
  33. timeout: 5s
  34. retries: 5