# MinIO
minio:
  image: {{ MINIO_DOCKER_IMAGE }}
  {% if not MINIO_GATEWAY %}
  volumes:
    - ../../data/minio:/data
  {% endif %}
  environment:
    MINIO_ROOT_USER: "{{ OPENEDX_AWS_ACCESS_KEY }}"
    MINIO_ROOT_PASSWORD: "{{ OPENEDX_AWS_SECRET_ACCESS_KEY }}"
  {% if MINIO_GATEWAY %}
  command: gateway {{ MINIO_GATEWAY }} --address ":9000" --console-address ":9001"
  {% else %}
  command: server --address ":9000" --console-address ":9001" /data
  {% endif %}
  restart: unless-stopped
