diff --git a/roles/minio/tasks/main.yml b/roles/minio/tasks/main.yml index c06a2d7f..11a55e7b 100644 --- a/roles/minio/tasks/main.yml +++ b/roles/minio/tasks/main.yml @@ -18,6 +18,8 @@ - "{{ minio_api_port }}:9000" - "{{ minio_console_port }}:{{ minio_console_port }}" command: 'server /data --console-address ":{{ minio_console_port }}"' + volumes: + - "{{ minio_data_directory }}/data:/data" env: MINIO_ROOT_USER: "{{ minio_admin_username }}" MINIO_ROOT_PASSWORD: "{{ minio_admin_password }}"