forked from jareware/docker-volume-backup
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from jan-brinkmann/Add-host-check
Add host check
- Loading branch information
Showing
5 changed files
with
158 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
version: "3" | ||
|
||
services: | ||
|
||
dashboard: | ||
image: grafana/grafana | ||
ports: | ||
- "3000:3000" | ||
volumes: | ||
- grafana-data:/var/lib/grafana | ||
|
||
backup: | ||
build: ../.. | ||
environment: | ||
BACKUP_CRON_EXPRESSION: "* * * * *" | ||
CHECK_MOUNT: "192.168.0.2" # The script sends a ping to 192.168.0.2. If the host answers the ping, the backup starts. Otherwise, it is skipped. You can als provide a hostname that is resolved by means of DNS. | ||
volumes: | ||
- grafana-data:/backup/grafana-data:ro | ||
- ./backups:/archive | ||
|
||
volumes: | ||
grafana-data: |