-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
35 lines (35 loc) · 1.56 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
services:
borgmatic:
image: ghcr.io/borgmatic-collective/borgmatic:1.8.13
restart: always
volumes:
- ./config/borgmatic.d:/etc/borgmatic.d:ro # borgmatic config file(s)
- ./data/.borgmatic:/root/.borgmatic # borgmatic state files
- ./data/.config/borg:/root/.config/borg # config and keyfiles
- ./data/.cache/borg:/root/.cache/borg # checksums used for deduplication
- $HOME/.ssh/id_borgmatic:/root/.ssh/id_borgmatic:ro # ssh key for remote repositories
- $HOME/.ssh/known_hosts:/root/.ssh/known_hosts # ssh known_hosts file
- /var/run/docker.sock:/var/run/docker.sock # docker socket to communicate with other containers
environment:
DOCKERCLI: true
TZ: UTC
BACKUP_CRON: 45 2 * * *
CRON_COMMAND: /usr/local/bin/borgmatic --stats -v 0 2>&1
borgmatic-exporter:
image: ghcr.io/maxim-mityutko/borgmatic-exporter:v0.2.5
restart: always
volumes:
- ./config/borgmatic.d:/etc/borgmatic.d:ro
- $HOME/.ssh/id_borgmatic:/root/.ssh/id_borgmatic:ro
- $HOME/.ssh/known_hosts:/root/.ssh/known_hosts:ro
- ./data/borgmatic-exporter/metrics:/data/metrics
environment:
BORGMATIC_EXPORTER_PORT: 9996
BORGMATIC_CONFIG: /etc/borgmatic.d/config.yml
BACKUP_CRON: 12 * * * *
CRON_COMMAND: /usr/bin/curl -s http://localhost:9996/metrics > /data/metrics/borgmatic.prom
project-scripts:
image: semtech/simple-script-store:1.0.0
volumes:
- ./scripts/project:/app/scripts/
restart: "no"