-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yml
More file actions
27 lines (26 loc) · 662 Bytes
/
compose.yml
File metadata and controls
27 lines (26 loc) · 662 Bytes
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
services:
unvr-nas-backup:
image: ghcr.io/ozark-connect/unvr-nas-backup:latest
build: .
container_name: unvr-nas-backup
restart: unless-stopped
env_file: .env
volumes:
- ${SSH_KEY_PATH:-~/.ssh}:/root/.ssh-mount:ro
- staging:/staging
- ${ARCHIVE_PATH:?ARCHIVE_PATH is required}:/archive
tmpfs:
- /tmp:size=2G
healthcheck:
test: ["CMD", "sh", "-c", "pgrep -x cron && [ -f /tmp/backup-last-success ]"]
interval: 60s
timeout: 5s
retries: 3
start_period: 120s
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
volumes:
staging: