diff --git a/backrest/compose.yaml b/backrest/compose.yaml new file mode 100644 index 0000000..25879ae --- /dev/null +++ b/backrest/compose.yaml @@ -0,0 +1,32 @@ +name: backrest +services: + backrest: + image: ghcr.io/garethgeorge/backrest:v1 + container_name: backrest + volumes: + - /srv/data/backrest/data:/data + - /srv/data/backrest/config:/config + - /srv/data/backrest/rclone:/root/.config/rclone + - /srv/data/backrest/repos:/repos + - /srv/fast/backrest/cache:/cache + - /mnt/toshiba:/mnt/toshiba:ro + environment: + BACKREST_DATA: /data + BACKREST_CONFIG: /config/config.json + XDG_CACHE_HOME: /cache + TMPDIR: /tmp + TZ: Asia/Shanghai + networks: + - proxy + restart: unless-stopped + deploy: + resources: + limits: + cpus: "3.0" + memory: 3G + reservations: + cpus: "1.0" + memory: 512M +networks: + proxy: + external: true