services:
  coordinator-service:
    build:
      context: ./search-coordinator
      dockerfile: docker/Dockerfile
    ports:
      - "8001:8000"
    depends_on:
      - mongodb

  mongodb:
    image: mongo:latest
    ports:
      - "27017:27017"
    volumes:
      - mongodb_data:/data/db
  redis:
    image: redis:alpine
    ports:
      - "6378:6379"
    volumes:
      - redis_data:/data
volumes:
  mongodb_data:
  redis_data:
