{% include 'roles/docker-compose/templates/base.yml.j2' %}

  minio:
{% include 'roles/docker-container/templates/base.yml.j2' %}
    image: {{ MINIO_IMAGE }}:{{ MINIO_VERSION }}
    container_name: {{ MINIO_CONTAINER }}
    ports:
      - "127.0.0.1:{{ MINIO_API_PORT_PUBLIC }}:{{ MINIO_API_PORT_INTERNAL }}"
      - "127.0.0.1:{{ MINIO_CONSOLE_PORT_PUBLIC }}:{{ MINIO_CONSOLE_PORT_INTERNAL }}"
    command: server /data --console-address ":{{ MINIO_CONSOLE_PORT_INTERNAL }}"
    volumes:
      - data:/data
{% include 'roles/docker-container/templates/networks.yml.j2' %}

{% include 'roles/docker-compose/templates/networks.yml.j2' %}

{% include 'roles/docker-compose/templates/volumes.yml.j2' %}
  data:
    name: {{ MINIO_VOLUME }}