From f0f4ec4335fa69cce1bf769009cf19a440253644 Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Sun, 13 May 2018 17:08:22 +0000 Subject: [PATCH] Add README --- README.md | 67 +++++++++++++++++++++++++++++++++ 1 files changed, 67 insertions(+), 0 deletions(-) diff --git a/README.md b/README.md new file mode 100644 index 0000000..d17e948 --- /dev/null +++ b/README.md @@ -0,0 +1,67 @@ +# mFi + +This is a Docker image of mFi Controller +(https://www.ubnt.com/download/mfi/default/default/mfiunixzip) +based on `openjdk:7-jre-slim`. + +## Disk space requirements + +mFi requires significant amount of storage - 3 GB just for starters. +Secure appropriate disk space and configure data retention. + +## Usage + +```bash +docker run -d --name=mfi \ + -p 6080:6080 -p 6443:6443 \ + jacekkow/mfi +``` + +First run wizard should be available at https://127.0.0.1:6443/ +(note that self-signed certificate is used). + +By default container uses Docker data volume for persistence. + +You can update such installation by passing `--volumes-from` option +to `docker run`: + +```bash +docker pull jacekkow/mfi +docker stop mfi +docker rename mfi mfi-old +docker run -d --name=mfi \ + -p 6080:6080 -p 6443:6443 \ + --volumes-from mfi-old \ + jacekkow/mfi +docker rm -v mfi-old +``` + +## Local storage + +If you prefer to have direct access to container's data +from the host, you can use local storage instead of data volumes: + +```bash +docker run -d --name=mfi \ + -p 6080:6080 -p 6443:6443 \ + -v /srv/mfi:/usr/lib/mfi/data \ + jacekkow/mfi +``` + +`/usr/lib/mfi/data` will be automatically populated +with default configuration if necessary. + +File ownership is recursively changed to +`mfi:mfi` (`500:500`) on each start. + +## Configuration + +By default the JVM is started with options `-Xmx1024m`. +You can override this default using `JAVA_OPTS` environment variable: + +```bash +docker run -d --name=mfi \ + -p 6080:6080 -p 6443:6443 \ + -e "JAVA_OPTS=-Xmx2048m" \ + jacekkow/mfi +``` -- Gitblit v1.9.1