Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NextCloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansible
Roles
NextCloud
Commits
b3ad0032
Commit
b3ad0032
authored
7 months ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Add borg backup to docker based installations
parent
cea27ca1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tasks/install.yml
+12
-0
12 additions, 0 deletions
tasks/install.yml
templates/docker-compose.yml
+4
-2
4 additions, 2 deletions
templates/docker-compose.yml
with
16 additions
and
2 deletions
tasks/install.yml
+
12
−
0
View file @
b3ad0032
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
templates/docker-compose.yml
+
4
−
2
View file @
b3ad0032
...
...
@@ -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'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment