VM Setup

You should be able to set up KAFE on any Linux machine with Docker installed using the docker-compose.yml file. It does need there to be some Docker volumes. These volumes are marked as external in docker-compose.yml:

To create these volumes use the following command (assuming you have a large and backed-up storage available at /data/):

$name = "sample"
docker volume create --driver local --opt type=none --opt device=/data/kafe/$name --opt o=bind kafe_$name

NOTE: This only works on Linux. The --opt options are taken from mount(8). See Docker docs for more details.

NOTE: This solution is based on this SO question.

To create volumes for staging using Linux's overlay filesystem:

docker volume create --driver local --opt type=overlay --opt device=overlay --opt o=lowerdir=/data/kafe/temp,upperdir=/data/kafe-stage/upper-temp,workdir=/data/kafe-stage/work-temp kafe_staging_temp