Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (45 loc) · 1.71 KB
/
Copy pathdocker-compose.yml
File metadata and controls
48 lines (45 loc) · 1.71 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
version: '3'
services:
borgserver:
image: ghcr.io/ls1admin/borgserver:latest
#build: .
volumes:
- ./backup:/backup
- ./sshkeys:/sshkeys
ports:
- "2222:22"
environment:
# Additional Arguments, see https://borgbackup.readthedocs.io/en/stable/usage/serve.html
BORG_SERVE_ARGS: ""
# If set to "yes", only the BORG_ADMIN
# can delete/prune the other clients archives/repos
BORG_APPEND_ONLY: "no"
# Filename of Admins SSH-Key; has full access to all repos
BORG_ADMIN: ""
restart: unless-stopped
labels:
# Opts this container in to the watchtower updater below.
com.centurylinklabs.watchtower.enable: "true"
# Optional: pull a new borgserver image every night and restart the container
# only if the digest actually changed. Uncomment to enable.
#
# The image is rebuilt daily but only republished when the base image, a
# package in it, or this repository changed, so most nights this is a no-op
# and the container is left running untouched.
#
# NOTE: mounting the docker socket gives this container root-equivalent
# control of the host. If you would rather not do that on a backup server,
# see the host-cron alternative in the README instead.
#
# watchtower:
# image: containrrr/watchtower:latest
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
# environment:
# # The schedule below is read in this timezone; the default is UTC.
# TZ: "Europe/Berlin"
# # Six-field cron (the leading field is seconds): 04:00 every night.
# # Pick a window that cannot overlap your clients' backup runs - an update
# # restarts the container and drops any backup that is in flight.
# command: --label-enable --cleanup --schedule "0 0 4 * * *"
# restart: unless-stopped