From 251d52f1deea44d5d945178dd536da313bc5591f Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 22 May 2020 11:47:45 +0100 Subject: [PATCH] Add rclone mounts --- .../files/duplicati/docker-compose.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ansible/roles/intersect-docker/files/duplicati/docker-compose.yml b/ansible/roles/intersect-docker/files/duplicati/docker-compose.yml index 4c58479..b857e77 100644 --- a/ansible/roles/intersect-docker/files/duplicati/docker-compose.yml +++ b/ansible/roles/intersect-docker/files/duplicati/docker-compose.yml @@ -13,9 +13,27 @@ 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