OK....
1) As well as the Docker plugin you will need docker-compose because two images are required. Install latest version like this
# curl -L https://github.com/docker/compose/releases/download/1.19.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
# chmod +x /usr/local/bin/docker-compose
Modify the above curl command to make sure you get the latest version.
2) Check the docker-compose installation
# docker-compose --version
docker-compose version 1.19.0, build 1719ceb
3) Pull the filerun image
#docker pull afian/filerun
4) Create a file docker-compose.yml containing the following
version: '2'
services:
db:
restart: unless-stopped
image: mariadb:10.1
environment:
MYSQL_ROOT_PASSWORD: filerun
MYSQL_USER: filerun
MYSQL_PASSWORD: filerun
MYSQL_DATABASE: filerun
volumes:
- /filerun/db:/var/lib/mysql
web:
restart: unless-stopped
depends_on:
- db
links:
- db
image: afian/filerun
ports:
- "81:80"
- "70:70"
expose:
- "81"
volumes:
- /filerun/html:/var/www/html
- /sharedfolders:/user-files
Alles anzeigen
A few things to notice in the yml file above:
- a) Two containers are required and both have the restart flag set to "unless-stopped" so that filerun will start automatically on boot.
- b) I have forwarded port 81 from the container so that filerun does not clash with the OMV gui
- c) Filerun looks for its files in the folder /user-files and so this has been mapped to the omv folder /sharedfolders
5) Now start filerun
6) The first time you run the above yml it will pull mariadb. You should see two new containers appear in the omv docker plugin - one for filrun and the other for mariadb. They should both be 'running'
7) You can now access filerun by pointing your browser to http://your-omv-host:81. The default username/password is superuser/superuser.
Once logged in you should have access to all your omv shared folders - you may need to fiddle about with permissions to achieve this! I have not been successful in using the docker plugin to modify the filerun containers but I haven't really tried too hard. It's just as easy to modify the yml file.
That's it - good luck
N