# Generated by aissemble-oip-deploy
# Docker Compose configuration for local MLServer deployment

services:
  mlserver:
    image: {{ image_name }}:latest
    build:
      context: ../..  # Project root (where models/ and pyproject.toml are)
      dockerfile: deploy/docker/Dockerfile
    ports:
      - "{{ http_port }}:8080"   # HTTP
      - "{{ grpc_port }}:8081"   # gRPC
    environment:
      - MLSERVER_HOST=0.0.0.0  # Bind to all interfaces (required for Docker)
      - MLSERVER_HTTP_PORT=8080
      - MLSERVER_GRPC_PORT=8081
{% if models %}
    # Models served:
{% for model in models %}
    #   - {{ model.name }}
{% endfor %}
{% endif %}
