• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    FOG Docker image

    Scheduled Pinned Locked Moved General
    2 Posts 2 Posters 12 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      Cpasjuste
      last edited by Cpasjuste

      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:
      
      Tom ElliottT 1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott @Cpasjuste
        last edited by

        @Cpasjuste if you have github you likely have ability to have copilot to help read the repo and help you build the README if you find it lacking.

        Just thoughts, but thanks for this.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post

        91

        Online

        12.7k

        Users

        17.6k

        Topics

        156.7k

        Posts
        Copyright © 2012-2026 FOG Project