/sino-bees-docker

docker container for zygo/bees for synology

Primary LanguageDockerfile

deatheibon/bees

Dockerized Best-Effort Extent-Same btrfs deduplication agent. https://github.com/Zygo/bees

This image is based on Ubuntu Linux with bees agent from testing repositories.

Usage

Mount BTRFS root subvolume to /mnt for example like:

mount /dev/"device" /mnt -o subvol=/

adjust the docker-compose volumes section.

docker run

daemonized

docker run -d --privileged -e HASH_TABLE=/mnt/.beeshome/beeshash.dat -e HASH_TABLE_SIZE=4G -e OPTIONS=-a -v /mnt:/mnt deatheibon/bees

interactive

docker run -ti --privileged -e HASH_TABLE=/mnt/.beeshome/beeshash.dat -e HASH_TABLE_SIZE=4G -e OPTIONS=-a -v /mnt:/mnt deatheibon/bees

docker-compose

services:
  beesd:
    container_name: beesd
    image: deatheibon/bees
    privileged: true
    restart: unless-stopped
    hostname: beesd
    environment:
      - TZ=Europe/Berlin
      - HASH_TABLE=/mnt/.beeshome/beeshash.dat
      - HASH_TABLE_SIZE=4G
      - OPTIONS=-a
    volumes:
      - /mnt:/mnt