ansible-role-docker-container-minio

Role to run Minio in a docker container

Table of content


Default Variables

docker_container_minio_command

Default value

docker_container_minio_command: server /export --console-address ":9001"

docker_container_minio_env

Dictionery of key,value pairs for docker environment variables to configure minio.

Default value

docker_container_minio_env:
  MINIO_ROOT_USER: minio_admin
  MINIO_ROOT_PASSWORD: somesecret

docker_container_minio_image

Repository path and tag used to create the container. If an image is not found or pull is true, the image will be pulled from the registry. If no tag is included, latest will be used.

Default value

docker_container_minio_image: '{{ docker_image_minio_name }}'

docker_container_minio_labels

Dictionary of key value pairs for container labels.

Example:

docker_container_minio_labels:

traefik.enable: "true"

Default value

docker_container_minio_labels: {}

docker_container_minio_name

Name for the container

Default value

docker_container_minio_name: minio

docker_container_minio_networks

List of networks the container belongs to.

Default value

docker_container_minio_networks:
  - name: '{{ docker_network_minio_name }}'

docker_container_minio_ports

List of ports to publish from the container to the host.

Default value

docker_container_minio_ports:
  - 9000:9000
  - 9001:9001

docker_container_minio_restic_enable

Enable restic backup for the container's mounted volumes.

Default value

docker_container_minio_restic_enable: false

docker_container_minio_restic_retention

Retention settions for restic forget after the restic backup.

Default value

docker_container_minio_restic_retention:
  keep_last: 1
  keep_daily: 7
  keep_weekly: 4

docker_container_minio_restic_s3_bucket_name

Minio S3 bucket name for restic backup storage.

Default value

docker_container_minio_restic_s3_bucket_name: restic-{{ docker_container_minio_name
  }}

docker_container_minio_restic_s3_endpoint

Minio S3 endpoint for restic backup storage.

Example:

docker_container__base__restic_s3_endpoint: "https://minio-backup.{{ dns_domain }}"

docker_container_minio_restic_s3_endpoint: "{{ docker_container__base__restic_s3_endpoint }}"

Default value

docker_container_minio_restic_s3_endpoint: '{{ docker_container__base__restic_s3_endpoint
  }}'

docker_container_minio_restic_s3_repo

Minio S3 repo URL for restic backup storage.

Default value

docker_container_minio_restic_s3_repo: s3:{{ docker_container_minio_restic_s3_endpoint
  }}/{{ docker_container_minio_restic_s3_bucket_name }}

docker_container_minio_restic_s3_repo_access_key

Minio S3 repo access key for restic backup storage.

Default value

docker_container_minio_restic_s3_repo_access_key: '{{ docker_container__base__restic_s3_repo_access_key
  }}'

docker_container_minio_restic_s3_repo_password

Minio S3 repo password for restic backup storage.

Default value

docker_container_minio_restic_s3_repo_password: '{{ docker_container__base__restic_s3_repo_password
  }}'

docker_container_minio_restic_s3_repo_secret_key

Minio S3 repo secret key for restic backup storage.

Default value

docker_container_minio_restic_s3_repo_secret_key: '{{ docker_container__base__restic_s3_repo_secret_key
  }}'

docker_container_minio_restic_tag

Tag for the restic backup command

Default value

docker_container_minio_restic_tag: '{{ docker_container_minio_name }}'

docker_container_minio_volume_dir

Volume mount host directory, where Treafik config files are stored.

Default value

docker_container_minio_volume_dir: '{{ docker_container__base__volume_dir }}/{{ docker_container_minio_name
  }}'

docker_container_minio_volumes

List of volumes to mount within the container.

Default value

docker_container_minio_volumes:
  - '{{ docker_container_minio_volume_dir }}/export:/export'
  - '{{ docker_container_minio_volume_dir }}/config:/root/.minio'

docker_image_minio_name

Repository path and tag for the container image.

Default value

docker_image_minio_name: minio/minio:latest

docker_image_minio_pull

Indicate to always pull the docker image.

Default value

docker_image_minio_pull: no

docker_network_minio_name

Name of the docker network created for minio.

Default value

docker_network_minio_name: '{{ docker_container_minio_name }}_backend'

Discovered Tags

docker-container-backup-all
 Backup all containers' volume mounts.

docker-container-backup-init-all
 Run init backup task for all container.

docker-container-backup-init-minio
 Run init backup task for minio if restic is enabled.

docker-container-backup-list-all
 List all containers' backups.

docker-container-backup-list-minio
 List minio backups.

docker-container-backup-minio
 Backup minio volume mounts.

docker-container-prereq-all
 Ensure all pre-requisites are installed

docker-container-prereq-minio
 Ensure all pre-requisites for minio are installed

docker-container-purge-all
 Remove all containers and delete volume mounts.

docker-container-purge-minio
 Remove minio and delete volume mounts.

docker-container-remove-all
 Remove all containers.

docker-container-remove-minio
 Remove minio.

docker-container-restore-all
 Run restic restore for all restic enabled containers.

docker-container-restore-minio
 Run restic restore for minio if restic is enabled.

docker-container-setup-all
 Run setup task for all containers.

docker-container-setup-minio
 Run setup task for minio.

never

Dependencies

None.

License

license (GPL-2.0-or-later, MIT, etc)

Author

andif888