Remove docker-rclone-mount
Seems there's some issues where having this attached which makes the duplicati container delete all its RO mounts.
This commit is contained in:
parent
7fbfbbb699
commit
cd255f7ca2
4 changed files with 1 additions and 48 deletions
|
@ -13,27 +13,9 @@ services:
|
||||||
- /srv/nextcloud-data/data/:/source/nextcloud:ro
|
- /srv/nextcloud-data/data/:/source/nextcloud:ro
|
||||||
- /opt/gitea/repos/repositories:/source/repositories:ro
|
- /opt/gitea/repos/repositories:/source/repositories:ro
|
||||||
- /scratch/db-backups:/source/db-backups:ro
|
- /scratch/db-backups:/source/db-backups:ro
|
||||||
- ./mounts:/source/mounts:shared
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.duplicati.rule=Host(`duplicati.jakehoward.tech`)"
|
- "traefik.http.routers.duplicati.rule=Host(`duplicati.jakehoward.tech`)"
|
||||||
- "traefik.http.routers.duplicati.tls.certresolver=le"
|
- "traefik.http.routers.duplicati.tls.certresolver=le"
|
||||||
- "traefik.http.routers.duplicati.middlewares=internal-only@file"
|
- "traefik.http.routers.duplicati.middlewares=internal-only@file"
|
||||||
|
|
||||||
rclone:
|
|
||||||
image: theorangeone/rclone-mount:latest
|
|
||||||
restart: unless-stopped
|
|
||||||
cap_add:
|
|
||||||
- SYS_ADMIN
|
|
||||||
security_opt:
|
|
||||||
- apparmor:unconfined
|
|
||||||
environment:
|
|
||||||
- PUID={{ docker_user.id }}
|
|
||||||
- PGID={{ docker_user.id }}
|
|
||||||
devices:
|
|
||||||
- "/dev/fuse:/dev/fuse"
|
|
||||||
volumes:
|
|
||||||
- ./mounts:/mnt:shared
|
|
||||||
- ./rclone-mounts.txt:/config/config.txt:ro
|
|
||||||
- ./rclone.conf:/config/rclone.conf:ro
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
upload: upload
|
|
|
@ -1,7 +0,0 @@
|
||||||
[upload]
|
|
||||||
type = s3
|
|
||||||
provider = Minio
|
|
||||||
env_auth = false
|
|
||||||
access_key_id = {{ minio_access_key }}
|
|
||||||
secret_access_key = {{ minio_secret_key }}
|
|
||||||
endpoint = https://upload.theorangeone.net
|
|
|
@ -1,6 +1,3 @@
|
||||||
- name: Include upload variables
|
|
||||||
include_vars: ../upload/vars/upload.yml
|
|
||||||
|
|
||||||
- name: Create duplicati directory
|
- name: Create duplicati directory
|
||||||
file:
|
file:
|
||||||
path: /opt/duplicati
|
path: /opt/duplicati
|
||||||
|
@ -19,24 +16,6 @@
|
||||||
register: compose_file
|
register: compose_file
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- name: Install rclone config
|
|
||||||
template:
|
|
||||||
src: files/duplicati/rclone.conf
|
|
||||||
dest: /opt/duplicati/rclone.conf
|
|
||||||
mode: "{{ docker_compose_file_mask }}"
|
|
||||||
owner: "{{ docker_user.name }}"
|
|
||||||
register: rclone_config
|
|
||||||
become: true
|
|
||||||
|
|
||||||
- name: Install rclone mounts
|
|
||||||
template:
|
|
||||||
src: files/duplicati/rclone-mounts.txt
|
|
||||||
dest: /opt/duplicati/rclone-mounts.txt
|
|
||||||
mode: "{{ docker_compose_file_mask }}"
|
|
||||||
owner: "{{ docker_user.name }}"
|
|
||||||
register: rclone_mounts
|
|
||||||
become: true
|
|
||||||
|
|
||||||
- name: Cycle duplicati container
|
- name: Cycle duplicati container
|
||||||
docker_compose:
|
docker_compose:
|
||||||
project_src: /opt/duplicati
|
project_src: /opt/duplicati
|
||||||
|
@ -44,7 +23,7 @@
|
||||||
remove_orphans: true
|
remove_orphans: true
|
||||||
remove_volumes: true
|
remove_volumes: true
|
||||||
state: "{{ item }}"
|
state: "{{ item }}"
|
||||||
when: compose_file.changed or rclone_config.changed or rclone_mounts.changed
|
when: compose_file.changed
|
||||||
loop:
|
loop:
|
||||||
- absent
|
- absent
|
||||||
- present
|
- present
|
||||||
|
|
Loading…
Reference in a new issue