Add rclone mounts

This commit is contained in:
Jake Howard 2020-05-22 11:47:45 +01:00
parent 9b9af7e90d
commit 251d52f1de
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -13,9 +13,27 @@ 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