From ff72f5a25e665cd743e9d834d43a41e1dbe6f14f Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 24 Oct 2020 14:26:30 +0100 Subject: [PATCH] Move nextcloud data dir to ZFS --- ansible/roles/intersect_docker/files/calibre/docker-compose.yml | 2 +- .../roles/intersect_docker/files/nextcloud/docker-compose.yml | 2 +- ansible/roles/intersect_docker/tasks/nextcloud.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ansible/roles/intersect_docker/files/calibre/docker-compose.yml b/ansible/roles/intersect_docker/files/calibre/docker-compose.yml index 20bea7a..aceb34e 100644 --- a/ansible/roles/intersect_docker/files/calibre/docker-compose.yml +++ b/ansible/roles/intersect_docker/files/calibre/docker-compose.yml @@ -9,7 +9,7 @@ services: restart: unless-stopped volumes: - "{{ app_data_dir }}/calibre:/config" - - /srv/nextcloud-data/data/jake/files/EBooks:/books:ro + - /mnt/tank/files/ebooks:/books:ro labels: - traefik.enable=true - traefik.http.routers.calibre.rule=Host(`calibre.jakehoward.tech`) diff --git a/ansible/roles/intersect_docker/files/nextcloud/docker-compose.yml b/ansible/roles/intersect_docker/files/nextcloud/docker-compose.yml index 1512ed4..a25a6fa 100644 --- a/ansible/roles/intersect_docker/files/nextcloud/docker-compose.yml +++ b/ansible/roles/intersect_docker/files/nextcloud/docker-compose.yml @@ -11,7 +11,7 @@ services: volumes: - "{{ app_data_dir }}/nextcloud/apps:/config/www/nextcloud/apps" - "{{ app_data_dir }}/nextcloud/config.php:/config/www/nextcloud/config/config.php" - - /srv/nextcloud-data/data:/data + - /mnt/tank/files/nextcloud:/data - /mnt/media:/content:ro - /mnt/tank/files:/mnt/files restart: unless-stopped diff --git a/ansible/roles/intersect_docker/tasks/nextcloud.yml b/ansible/roles/intersect_docker/tasks/nextcloud.yml index 59ee091..6511dfa 100644 --- a/ansible/roles/intersect_docker/tasks/nextcloud.yml +++ b/ansible/roles/intersect_docker/tasks/nextcloud.yml @@ -38,5 +38,5 @@ cron: name: Set nextcloud data permissions special_time: daily - job: chown -R {{ docker_user.name }}:{{ docker_user.name }} /srv/nextcloud-data/data/* + job: chown -R {{ docker_user.name }}:{{ docker_user.name }} /mnt/tank/files/nextcloud become: true