Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
smartpublicbuilding
openhab-pb-stack
Commits
030b406e
Commit
030b406e
authored
6 years ago
by
dobli
Browse files
Options
Download
Email Patches
Plain Diff
added backup entries for building 2 and 3
parent
f48b6450
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docker-compose.yml
+55
-0
docker-compose.yml
with
55 additions
and
0 deletions
+55
-0
docker-compose.yml
+
55
-
0
View file @
030b406e
...
...
@@ -86,6 +86,61 @@ services:
placement
:
constraints
:
-
node.labels.building == b1
backup2
:
image
:
blacklabelops/volumerize
volumes
:
-
"
/var/run/docker.sock:/var/run/docker.sock"
-
"
openhab_userdata:/source/openhab_userdata"
-
"
openhab_conf:/source/openhab_conf"
-
"
openhab_addons:/source/openhab_addons"
-
"
backup_cache:/volumerize-cache"
-
"
backup_data:/backup"
configs
:
-
source
:
backup_config_b2
target
:
/backup_config.json
-
source
:
sftp_id_key
target
:
/root/.ssh/id_rsa
mode
:
0400
-
source
:
sftp_known_hosts
target
:
/root/.ssh/known_hosts
mode
:
0400
environment
:
-
VOLUMERIZE_SOURCE=/source
-
VOLUMERIZE_TARGET='multi:///backup_config.json?mode=mirror&onfail=abort'
-
VOLUMERIZE_DUPLICITY_OPTIONS=--ssh-options "-oStrictHostKeyChecking=no"
networks
:
-
habnet
deploy
:
placement
:
constraints
:
-
node.labels.building == b2
backup3
:
image
:
blacklabelops/volumerize
volumes
:
-
"
openhab_userdata:/source/openhab_userdata"
-
"
openhab_conf:/source/openhab_conf"
-
"
openhab_addons:/source/openhab_addons"
-
"
backup_cache:/volumerize-cache"
-
"
backup_data:/backup"
configs
:
-
source
:
backup_config_b3
target
:
/backup_config.json
-
source
:
sftp_id_key
target
:
/root/.ssh/id_rsa
mode
:
0400
-
source
:
sftp_known_hosts
target
:
/root/.ssh/known_hosts
mode
:
0400
environment
:
-
VOLUMERIZE_SOURCE=/source
-
VOLUMERIZE_TARGET='multi:///backup_config.json?mode=mirror&onfail=abort'
-
VOLUMERIZE_DUPLICITY_OPTIONS=--ssh-options "-oStrictHostKeyChecking=no"
networks
:
-
habnet
deploy
:
placement
:
constraints
:
-
node.labels.building == b3
sftp
:
image
:
"
doblix/sftp-unison"
volumes
:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets