docker-compose.yml 830 B

123456789101112131415161718192021222324252627282930313233343536
  1. services:
  2. postgres:
  3. image: pgvector/pgvector:pg16
  4. container_name: memory-agents-postgres
  5. environment:
  6. POSTGRES_USER: memory
  7. POSTGRES_PASSWORD: memory
  8. POSTGRES_DB: memory_agents
  9. ports:
  10. - "54329:5432"
  11. volumes:
  12. - memory_agents_postgres:/var/lib/postgresql/data
  13. - ./infra/initdb:/docker-entrypoint-initdb.d:ro
  14. healthcheck:
  15. test: ["CMD-SHELL", "pg_isready -U memory -d memory_agents"]
  16. interval: 5s
  17. timeout: 5s
  18. retries: 12
  19. redis:
  20. image: redis:7-alpine
  21. container_name: memory-agents-redis
  22. ports:
  23. - "6379:6379"
  24. volumes:
  25. - memory_agents_redis:/data
  26. healthcheck:
  27. test: ["CMD", "redis-cli", "ping"]
  28. interval: 5s
  29. timeout: 3s
  30. retries: 12
  31. volumes:
  32. memory_agents_postgres:
  33. memory_agents_redis: