Skip to content
Snippets Groups Projects
Commit b3ad0032 authored by jurgenhaas's avatar jurgenhaas
Browse files

Add borg backup to docker based installations

parent cea27ca1
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,18 @@
tags:
- always
- name: Configure Backup
include_role:
name: borgbackup
tasks_from: app
vars:
application: nextcloud
application_id: '{{ nextcloud.id }}'
application_remote_repo: '{{ nextcloud.borg_repo }}'
application_root: '{{ dataRoot }}.backup'
application_backup_source: '{{ dataRoot }}'
when: nextcloud_mode == 'docker' and nextcloud.borg_repo is defined
- name: Enable Maintenance Mode
command: '{{ php_command }} ./occ maintenance:mode --on --no-interaction --no-warnings'
args:
......
......@@ -119,14 +119,16 @@ services:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
{% if nextcloud.turn defined %}
borgmatic: {{ docker_compose_borgmatic_service }}
{% if nextcloud.turn is defined %}
coturn:
image: instrumentisto/coturn:latest
restart: unless-stopped
networks:
- traefik-public
command:
- '--realm={{ nextcloud.turndomain }}'
- '--realm={{ nextcloud.turn.domain }}'
- '--server-name=turn-server'
- '--fingerprint'
- '--listening-ip=0.0.0.0'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment