updated all stacks to use new label

pull/16/head
Cian Hatton 3 years ago
parent 23cc3964b9
commit 2b1fc618ad

@ -36,9 +36,14 @@ qnap:
docker_compose_directory: /etc/docker-compose docker_compose_directory: /etc/docker-compose
# path on qnap where backups are stored # path on qnap where backups are stored
backups_dir: /mnt/mergerfs/backups backups_dir: /mnt/mergerfs/backups
# path where photoprism photos are stored
photoprism_dir: /mnt/mergerfs/photoprism photoprism_dir: /mnt/mergerfs/photoprism
dockervolumebackup:
image: ghcr.io/chatton/docker-volume-backup
tag: pr-20
config_directory: /etc/docker-volume-backup
# dashy related config # dashy related config
dashy: dashy:
destination_dir: /etc/config/dashy destination_dir: /etc/config/dashy

@ -5,3 +5,6 @@
- name: restart-olivetin - name: restart-olivetin
shell: docker restart olivetin shell: docker restart olivetin
- name: restart-docker-volume-backup
shell: docker restart docker-volume-backup

@ -32,6 +32,7 @@
with_items: with_items:
- "{{dashy.destination_dir}}" - "{{dashy.destination_dir}}"
- "{{olivetin.destination_dir}}" - "{{olivetin.destination_dir}}"
- "{{dockervolumebackup.config_directory}}"
- name: Dashy | Config Files - name: Dashy | Config Files
copy: copy:
@ -47,6 +48,13 @@
notify: notify:
- restart-olivetin - restart-olivetin
- name: Docker Volume Backup | Config Files
template:
src: "docker-volume-backup/config.j2"
dest: "{{dockervolumebackup.config_directory}}/config.yml"
notify:
- restart-docker-volume-backup
- name: Install python dependencies (requests) - name: Install python dependencies (requests)
pip: pip:
name: requests name: requests

@ -5,17 +5,8 @@ services:
docker-volume-backup: docker-volume-backup:
container_name: docker-volume-backup container_name: docker-volume-backup
restart: always restart: always
image: ghcr.io/chatton/docker-volume-backup:v0.3.0 image: {{dockervolumebackup.image}}:{{dockervolumebackup.tag}}
command: command: periodic-backups
- periodic-backups
- --cron
- "0 3 * * *"
- --host-path
- /mnt/mergerfs/backups/
- --retention-days
- "7"
- --modes
- "filesystem,s3"
environment: environment:
AWS_ACCESS_KEY_ID: {{ docker_volume_backup.aws_access_key_id }} AWS_ACCESS_KEY_ID: {{ docker_volume_backup.aws_access_key_id }}
AWS_SECRET_ACCESS_KEY: {{ docker_volume_backup.aws_secret_access_key }} AWS_SECRET_ACCESS_KEY: {{ docker_volume_backup.aws_secret_access_key }}
@ -27,3 +18,4 @@ services:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
- {{qnap.backups_dir}}:/backups - {{qnap.backups_dir}}:/backups
- /tmp:/tmp - /tmp:/tmp
- {{dockervolumebackup.config_directory}}/config.yml:{{dockervolumebackup.config_directory}}/config.yml

@ -2,31 +2,33 @@
periodic_backups: periodic_backups:
- name: "Nightly Volume Backups" - name: "Nightly Volume Backups"
schedule: "0 3 * * *" schedule: "0 3 * * *"
schedule_key: {{ backups.schedule_keys.nightly }}
backups: backups:
- name: "Nightly backup to local filesystem" - name: "Nightly backup to local filesystem"
type: "filesystem" type: "filesystem"
filesystem_options:
host_path: {{ qnap.backups_dir }} host_path: {{ qnap.backups_dir }}
schedule_key: {{ backups.schedule_keys.nightly }}
- name: "Backup to iDrive E2" - name: "Backup to iDrive E2"
type: "s3" type: "s3"
schedule_key: {{ backups.schedule_keys.nightly }} s3_options:
s3_credentials: host_path: {{ qnap.backups_dir }}
aws_access_key_id: {{ docker_volume_backup.aws_access_key_id }} aws_access_key_id: {{ docker_volume_backup.aws_access_key_id }}
aws_secret_access_key: {{ docker_volume_backup.aws_secret_access_key }} aws_secret_access_key: {{ docker_volume_backup.aws_secret_access_key }}
aws_default_region: {{ docker_volume_backup.aws_default_region }} aws_default_region: {{ docker_volume_backup.aws_default_region }}
aws_bucket: {{ docker_volume_backup.aws_bucket }} aws_bucket: {{ docker_volume_backup.aws_bucket }}
aws_endpoint: {{ docker_volume_backup.aws_endpoint }} aws_endpoint: {{ docker_volume_backup.aws_endpoint }}
- name: "Monthly Volume Backups" - name: "Monthly Volume Backups"
schedule: "0 3 * * *" schedule: "0 0 1 * *"
schedule_key: {{ backups.schedule_keys.monthly }}
backups: backups:
- name: "Monthly backup to local filesystem" - name: "Monthly backup to local filesystem"
type: "filesystem" type: "filesystem"
filesystem_options:
host_path: {{ qnap.backups_dir }} host_path: {{ qnap.backups_dir }}
schedule_key: {{ backups.schedule_keys.monthly }}
- name: "Backup to iDrive E2" - name: "Backup to iDrive E2"
type: "s3" type: "s3"
schedule_key: {{ backups.schedule_keys.monthly }} s3_options:
s3_credentials: host_path: {{ qnap.backups_dir }}
aws_access_key_id: {{ docker_volume_backup.aws_access_key_id }} aws_access_key_id: {{ docker_volume_backup.aws_access_key_id }}
aws_secret_access_key: {{ docker_volume_backup.aws_secret_access_key }} aws_secret_access_key: {{ docker_volume_backup.aws_secret_access_key }}
aws_default_region: {{ docker_volume_backup.aws_default_region }} aws_default_region: {{ docker_volume_backup.aws_default_region }}

@ -5,6 +5,7 @@ services:
gitea: gitea:
labels: labels:
ie.cianhatton.backup.enabled: "true" ie.cianhatton.backup.enabled: "true"
ie.cianhatton.backup.key: "{{backups.schedule_keys.nightly}}"
image: gitea/gitea:1.16.9 image: gitea/gitea:1.16.9
container_name: gitea container_name: gitea
environment: environment:

@ -4,6 +4,7 @@ services:
linkding: linkding:
labels: labels:
ie.cianhatton.backup.enabled: "true" ie.cianhatton.backup.enabled: "true"
ie.cianhatton.backup.key: "{{backups.schedule_keys.nightly}}"
container_name: "linkding" container_name: "linkding"
image: sissbruecker/linkding:latest image: sissbruecker/linkding:latest
ports: ports:

@ -4,6 +4,7 @@ services:
mariadb: mariadb:
labels: labels:
ie.cianhatton.backup.enabled: "true" ie.cianhatton.backup.enabled: "true"
ie.cianhatton.backup.key: "{{backups.schedule_keys.nightly}}"
container_name: mariadb container_name: mariadb
image: mariadb image: mariadb
hostname: mariadb hostname: mariadb

@ -4,6 +4,7 @@ services:
mealie: mealie:
labels: labels:
ie.cianhatton.backup.enabled: "true" ie.cianhatton.backup.enabled: "true"
ie.cianhatton.backup.key: "{{backups.schedule_keys.nightly}}"
container_name: mealie container_name: mealie
image: hkotel/mealie:latest image: hkotel/mealie:latest
restart: unless-stopped restart: unless-stopped

@ -4,6 +4,7 @@ services:
nextcloud: nextcloud:
labels: labels:
ie.cianhatton.backup.enabled: "true" ie.cianhatton.backup.enabled: "true"
ie.cianhatton.backup.key: "{{backups.schedule_keys.nightly}}"
image: nextcloud image: nextcloud
container_name: nextcloud container_name: nextcloud
restart: unless-stopped restart: unless-stopped

@ -4,6 +4,7 @@ services:
nginx-proxy-manager: nginx-proxy-manager:
labels: labels:
ie.cianhatton.backup.enabled: "true" ie.cianhatton.backup.enabled: "true"
ie.cianhatton.backup.key: "{{backups.schedule_keys.nightly}}"
image: jlesage/nginx-proxy-manager image: jlesage/nginx-proxy-manager
container_name: nginx-proxy-manager container_name: nginx-proxy-manager
restart: unless-stopped restart: unless-stopped

@ -4,6 +4,7 @@ services:
overseerr: overseerr:
labels: labels:
ie.cianhatton.backup.enabled: "true" ie.cianhatton.backup.enabled: "true"
ie.cianhatton.backup.key: "{{backups.schedule_keys.nightly}}"
image: sctx/overseerr:latest image: sctx/overseerr:latest
container_name: overseerr container_name: overseerr
ports: ports:

@ -4,6 +4,7 @@ services:
plex: plex:
labels: labels:
ie.cianhatton.backup.enabled: "true" ie.cianhatton.backup.enabled: "true"
ie.cianhatton.backup.key: "{{backups.schedule_keys.monthly}}"
image: lscr.io/linuxserver/plex:latest image: lscr.io/linuxserver/plex:latest
container_name: plex container_name: plex
ports: ports:

@ -4,6 +4,7 @@ services:
uptime-kuma: uptime-kuma:
labels: labels:
ie.cianhatton.backup.enabled: "true" ie.cianhatton.backup.enabled: "true"
ie.cianhatton.backup.key: "{{backups.schedule_keys.nightly}}"
image: louislam/uptime-kuma:1 image: louislam/uptime-kuma:1
container_name: uptime-kuma container_name: uptime-kuma
volumes: volumes:

@ -34,6 +34,7 @@ services:
qbittorrent: qbittorrent:
labels: labels:
ie.cianhatton.backup.enabled: "true" ie.cianhatton.backup.enabled: "true"
ie.cianhatton.backup.key: "{{backups.schedule_keys.nightly}}"
depends_on: depends_on:
- surfshark - surfshark
@ -53,6 +54,7 @@ services:
radarr: radarr:
labels: labels:
ie.cianhatton.backup.enabled: "true" ie.cianhatton.backup.enabled: "true"
ie.cianhatton.backup.key: "{{backups.schedule_keys.nightly}}"
depends_on: depends_on:
- surfshark - surfshark
image: lscr.io/linuxserver/radarr:latest image: lscr.io/linuxserver/radarr:latest
@ -74,6 +76,7 @@ services:
image: lscr.io/linuxserver/sonarr:latest image: lscr.io/linuxserver/sonarr:latest
labels: labels:
ie.cianhatton.backup.enabled: "true" ie.cianhatton.backup.enabled: "true"
ie.cianhatton.backup.key: "{{backups.schedule_keys.nightly}}"
container_name: sonarr container_name: sonarr
network_mode: service:surfshark network_mode: service:surfshark
environment: environment:
@ -89,6 +92,7 @@ services:
jackett: jackett:
labels: labels:
ie.cianhatton.backup.enabled: "true" ie.cianhatton.backup.enabled: "true"
ie.cianhatton.backup.key: "{{backups.schedule_keys.nightly}}"
depends_on: depends_on:
- surfshark - surfshark
image: lscr.io/linuxserver/jackett:latest image: lscr.io/linuxserver/jackett:latest

Loading…
Cancel
Save