[TRAEFIK] Add auto-backup
This commit is contained in:
parent
221b1f8b6a
commit
e6b847344c
1 changed files with 27 additions and 0 deletions
|
@ -115,6 +115,33 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ./config/dynamic_conf.yaml:/usr/local/apache2/htdocs/dynamic_conf.yaml
|
- ./config/dynamic_conf.yaml:/usr/local/apache2/htdocs/dynamic_conf.yaml
|
||||||
|
|
||||||
|
# BACKUP
|
||||||
|
backup_prometheus:
|
||||||
|
image: offen/docker-volume-backup:latest
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
BACKUP_CRON_EXPRESSION: "{{ server.backup.cron_expression }}"
|
||||||
|
BACKUP_FILENAME: "{{ server.backup.filename_date_format }}-prometheus.tar.gz"
|
||||||
|
BACKUP_LATEST_SYMLINK: prometheus.latest.tar.gz
|
||||||
|
BACKUP_EXCLUDE_REGEXP: "\\.log$$"
|
||||||
|
BACKUP_RETENTION_DAYS: "{{ server.backup.retention_days }}"
|
||||||
|
volumes:
|
||||||
|
- prometheus:/backup:ro
|
||||||
|
- {{ server.backup.folder }}/traefik:/archive
|
||||||
|
|
||||||
|
backup_grafana:
|
||||||
|
image: offen/docker-volume-backup:latest
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
BACKUP_CRON_EXPRESSION: "{{ server.backup.cron_expression }}"
|
||||||
|
BACKUP_FILENAME: "{{ server.backup.filename_date_format }}-grafana.tar.gz"
|
||||||
|
BACKUP_LATEST_SYMLINK: grafana.latest.tar.gz
|
||||||
|
BACKUP_EXCLUDE_REGEXP: "\\.log$$"
|
||||||
|
BACKUP_RETENTION_DAYS: "{{ server.backup.retention_days }}"
|
||||||
|
volumes:
|
||||||
|
- grafana:/backup:ro
|
||||||
|
- {{ server.backup.folder }}/traefik:/archive
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
providers:
|
providers:
|
||||||
internal:
|
internal:
|
||||||
|
|
Loading…
Reference in a new issue