Commit 030b406e authored by dobli's avatar dobli
Browse files

added backup entries for building 2 and 3

parent f48b6450
No related merge requests found
Showing with 55 additions and 0 deletions
+55 -0
......@@ -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:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment