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:
Jake Howard 2020-05-22 21:09:40 +01:00
parent 7fbfbbb699
commit cd255f7ca2
Signed by: jake
GPG key ID: 57AFB45680EDD477
4 changed files with 1 additions and 48 deletions

View file

@ -13,27 +13,9 @@ services:
- /srv/nextcloud-data/data/:/source/nextcloud:ro
- /opt/gitea/repos/repositories:/source/repositories:ro
- /scratch/db-backups:/source/db-backups:ro
- ./mounts:/source/mounts:shared
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.duplicati.rule=Host(`duplicati.jakehoward.tech`)"
- "traefik.http.routers.duplicati.tls.certresolver=le"
- "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

View file

@ -1 +0,0 @@
upload: upload

View file

@ -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

View file

@ -1,6 +1,3 @@
- name: Include upload variables
include_vars: ../upload/vars/upload.yml
- name: Create duplicati directory
file:
path: /opt/duplicati
@ -19,24 +16,6 @@
register: compose_file
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
docker_compose:
project_src: /opt/duplicati
@ -44,7 +23,7 @@
remove_orphans: true
remove_volumes: true
state: "{{ item }}"
when: compose_file.changed or rclone_config.changed or rclone_mounts.changed
when: compose_file.changed
loop:
- absent
- present