Hi there !
I’ve been working the last few days on a fog docker image. I think it have reached a point were it could be great for me to get some testing and report (especially with the unfs3 server). The image seems to work fine, but i did only test it in a small home lab, and didn’t try things like snapping, wol, ping host and such. Consider this a work in progress.
I’m very bad at readme and such (boring!) but i did try to write a small one which should help to understand how it work (and the challenge behind this image). It is available on my github.
I can’t wait for your feedback, and i hope you’ll like it ! In the meantime, here is a docker compose sample to get up and running in a few seconds (i hope!):
services:
fog:
image: cpasjuste/fog
restart: unless-stopped
#privileged: true # for nfs-kernel-server mode
environment:
HTTP_ADDRESS: 192.168.0.83 # also used for ftp/tftp/nfs/...
# you can use a custom http port, but storage "Node Disk Usage"
# and "Bandwidth" graphs wont display correctly.
# this can be fixed with a reverse proxy (or use port 80)
HTTP_PORT: ${HTTP_PORT:-9445}
PHP_FPM_PORT: ${PHP_FPM_PORT:-9444} # listen on localhost, no need to open port in firewall
WEB_PASSWORD: ${WEB_PASSWORD:-password} # web user (fog) password
MYSQL_PASSWORD: ${MYSQL_PASSWORD:-dockerfogsql} # mysql user (fog) password
# builtin storage (shell/nfs/ftp/tftp...) password
# use alphanumeric because it is not handled correctly by fog (php?)
STORAGE_PASSWORD: ${STORAGE_PASSWORD:-dockerfogstorage}
USE_UNFS3: true # use userland nfs server (no need for privileged mode)
volumes:
- database:/var/lib/mysql
- /images:/images # on host: sudo mkdir /images && chown -R 1000:1000 /images
#- /lib/modules:/lib/modules:ro # for nfs-kernel-server mode
network_mode: host # needed ports: https://github.com/Cpasjuste/docker-fog/blob/main/README.md
volumes:
database: