Compare commits

...

2 commits

Author SHA1 Message Date
3581dfc24a
Restic: Add additional backup targets 2024-08-18 14:47:05 +02:00
e4ac3e8977
Try to fix loki docker timeout
doesn't really work, but better than nothing
2024-08-18 14:46:45 +02:00
2 changed files with 61 additions and 1 deletions

View file

@ -49,7 +49,11 @@ in {
log-driver = "loki"; log-driver = "loki";
log-opts = { log-opts = {
loki-url = "http://localhost:3100/loki/api/v1/push"; loki-url = "http://localhost:3100/loki/api/v1/push";
# loki-url = "http://host.docker.internal:3100/loki/api/v1/push"; loki-batch-size = "400";
loki-max-backoff = "800ms";
loki-retries = "2";
loki-timeout = "1s";
keep-file = "true";
}; };
}; };
} }

View file

@ -224,6 +224,62 @@ in {
- arion -f ${arionPath}/auth/arion-compose.nix -p ${arionPath}/auth/arion-pkgs.nix stop - arion -f ${arionPath}/auth/arion-compose.nix -p ${arionPath}/auth/arion-pkgs.nix stop
after: after:
- arion -f ${arionPath}/auth/arion-compose.nix -p ${arionPath}/auth/arion-pkgs.nix start - arion -f ${arionPath}/auth/arion-compose.nix -p ${arionPath}/auth/arion-pkgs.nix start
infrastructure:
from: /storage/dataset/docker/infrastructure
to:
- zfs
- ssd
- eustachius
cron: '55 3 * * *' # Every Day at 3:55
hooks:
<<: *default_hooks
before:
- arion -f ${arionPath}/infrastructure/arion-compose.nix -p ${arionPath}/infrastructure/arion-pkgs.nix stop
after:
- arion -f ${arionPath}/infrastructure/arion-compose.nix -p ${arionPath}/infrastructure/arion-pkgs.nix start
wiki:
from: /storage/dataset/docker/wiki
to:
- zfs
- ssd
- eustachius
cron: '55 3 * * *' # Every Day at 3:55
hooks:
<<: *default_hooks
before:
- arion -f ${arionPath}/wiki/arion-compose.nix -p ${arionPath}/wiki/arion-pkgs.nix stop
after:
- arion -f ${arionPath}/wiki/arion-compose.nix -p ${arionPath}/wiki/arion-pkgs.nix start
stats:
from: /storage/dataset/docker/stats
to:
- zfs
- ssd
- eustachius
cron: '55 3 * * *' # Every Day at 3:55
hooks:
<<: *default_hooks
before:
- arion -f ${arionPath}/stats/arion-compose.nix -p ${arionPath}/stats/arion-pkgs.nix stop
after:
- arion -f ${arionPath}/stats/arion-compose.nix -p ${arionPath}/stats/arion-pkgs.nix start
minio:
from: /storage/dataset/docker/stats
to:
- zfs
- ssd
- eustachius
cron: '55 3 * * *' # Every Day at 3:55
options:
backup:
exclude:
- '*.pmtiles'
hooks:
<<: *default_hooks
before:
- arion -f ${arionPath}/minio/arion-compose.nix -p ${arionPath}/minio/arion-pkgs.nix stop
after:
- arion -f ${arionPath}/minio/arion-compose.nix -p ${arionPath}/minio/arion-pkgs.nix start
backends: backends:
zfs: zfs:
type: local type: local