services: postgres: image: pgvector/pgvector:pg16 container_name: ontology-postgres restart: unless-stopped environment: POSTGRES_USER: ontology POSTGRES_PASSWORD: ontology POSTGRES_DB: ontology ports: - '55432:5432' volumes: - pgdata:/var/lib/postgresql/data healthcheck: test: ['CMD-SHELL', 'pg_isready -U ontology -d ontology'] interval: 5s timeout: 3s retries: 20 redis: image: redis:7-alpine container_name: ontology-redis restart: unless-stopped ports: - '56379:6379' healthcheck: test: ['CMD', 'redis-cli', 'ping'] interval: 5s timeout: 3s retries: 20 volumes: pgdata: