Role to run reposilite in a docker container
- Default Variables
- docker_container_reposilite_admin_password
- docker_container_reposilite_admin_username
- docker_container_reposilite_comparisons
- docker_container_reposilite_env
- docker_container_reposilite_image
- docker_container_reposilite_interactive
- docker_container_reposilite_labels
- docker_container_reposilite_name
- docker_container_reposilite_networks
- docker_container_reposilite_ports
- docker_container_reposilite_restic_enable
- docker_container_reposilite_restic_retention
- docker_container_reposilite_restic_s3_bucket_name
- docker_container_reposilite_restic_s3_endpoint
- docker_container_reposilite_restic_s3_repo
- docker_container_reposilite_restic_s3_repo_access_key
- docker_container_reposilite_restic_s3_repo_password
- docker_container_reposilite_restic_s3_repo_secret_key
- docker_container_reposilite_restic_tag
- docker_container_reposilite_timezone
- docker_container_reposilite_tty
- docker_container_reposilite_volume_dir
- docker_container_reposilite_volumes
- docker_container_resposilite_admin_password
- docker_container_resposilite_admin_username
- docker_image_reposilite_name
- docker_image_reposilite_pull
- docker_network_reposilite_name
- Discovered Tags
- Dependencies
- License
- Author
docker_container_reposilite_admin_password: SomeSecret
admin username
Allows to specify how properties of existing containers are compared with module options to decide whether the container should be recreated / updated or not.
docker_container_reposilite_comparisons:
image: strict
env: strict
volumes: strict
Dictionery of key,value pairs for docker environment variables to configure reposilite.
Example:
docker_container_reposilite_env:
reposilite__mailer__ENABLED: "false"
docker_container_reposilite_env:
REPOSILITE_OPTS: --token {{ docker_container_reposilite_admin_username }}:{{ docker_container_reposilite_admin_password
}}
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.
docker_container_reposilite_image: '{{ docker_image_reposilite_name }}'
docker_container_reposilite_interactive: yes
Dictionary of key value pairs for container labels.
Example:
docker_container_reposilite_labels:
traefik.enable: "true"
docker_container_reposilite_labels: {}
Name for the container
docker_container_reposilite_name: reposilite
List of networks the container belongs to.
docker_container_reposilite_networks:
- name: '{{ docker_network_reposilite_name }}'
List of ports to publish from the container to the host.
docker_container_reposilite_ports:
- 80:80
Enable restic backup for the container's mounted volumes.
docker_container_reposilite_restic_enable: false
Retention settions for restic forget
after the restic backup
.
docker_container_reposilite_restic_retention:
keep_last: 1
keep_daily: 7
keep_weekly: 4
Minio S3 bucket name for restic backup storage.
docker_container_reposilite_restic_s3_bucket_name: restic-{{ docker_container_reposilite_name
}}
Minio S3 endpoint for restic backup storage.
Example:
docker_container__base__restic_s3_endpoint: "https://minio.{{ dns_domain }}"
docker_container_reposilite_restic_s3_endpoint: "{{ docker_container__base__restic_s3_endpoint }}"
docker_container_reposilite_restic_s3_endpoint: '{{ docker_container__base__restic_s3_endpoint
}}'
Minio S3 repo URL for restic backup storage.
docker_container_reposilite_restic_s3_repo: s3:{{ docker_container_reposilite_restic_s3_endpoint
}}/{{ docker_container_reposilite_restic_s3_bucket_name }}
Minio S3 repo access key for restic backup storage.
docker_container_reposilite_restic_s3_repo_access_key: '{{ docker_container__base__restic_s3_repo_access_key
}}'
Minio S3 repo password for restic backup storage.
docker_container_reposilite_restic_s3_repo_password: '{{ docker_container__base__restic_s3_repo_password
}}'
Minio S3 repo secret key for restic backup storage.
docker_container_reposilite_restic_s3_repo_secret_key: '{{ docker_container__base__restic_s3_repo_secret_key
}}'
Tag for the restic backup
command
docker_container_reposilite_restic_tag: '{{ docker_container_reposilite_name }}'
timezone
docker_container_reposilite_tty: yes
Volume mount host directory, where Treafik config files are stored.
docker_container_reposilite_volume_dir: '{{ docker_container__base__volume_dir }}/{{
docker_container_reposilite_name }}'
List of volumes to mount within the container.
docker_container_reposilite_volumes:
- '{{ docker_container_reposilite_volume_dir }}/data:/app/data'
admin password
docker_container_resposilite_admin_username: admin
Repository path and tag for the container image.
docker_image_reposilite_name: dzikoysk/reposilite:3.3.0
Indicate to always pull the docker image.
docker_image_reposilite_pull: false
Name of the docker network created for reposilite.
docker_network_reposilite_name: '{{ docker_container_reposilite_name }}_backend'
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-reposilite
Run init backup task for reposilite if restic is enabled.
docker-container-backup-list-all
List all containers' backups.
docker-container-backup-list-reposilite
List reposilite backups.
docker-container-backup-reposilite
Backup reposilite volume mounts.
docker-container-prereq-all
Ensure all pre-requisites are installed
docker-container-prereq-reposilite
Ensure all pre-requisites for reposilite are installed
docker-container-purge-all
Remove all containers and delete volume mounts.
docker-container-purge-reposilite
Remove reposilite and delete volume mounts.
docker-container-remove-all
Remove all containers.
docker-container-remove-reposilite
Remove reposilite.
docker-container-restore-all
Run restic restore for all restic enabled containers.
docker-container-restore-reposilite
Run restic restore for reposilite if restic is enabled.
docker-container-setup-all
Run setup task for all containers.
docker-container-setup-reposilite
Run setup task for reposilite.
never
None.
license (GPL-2.0-or-later, MIT, etc)
andif888