From 4aaf6365c94dd4346ed92669749f91ddebc2c6f1 Mon Sep 17 00:00:00 2001 From: Derek Cooper Date: Mon, 11 May 2026 22:57:15 -0700 Subject: [PATCH] created filegator --- FileGator/.env.example | 18 ++++++++++++++++ FileGator/docker-compose-nfs.yaml | 36 +++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 FileGator/.env.example create mode 100644 FileGator/docker-compose-nfs.yaml diff --git a/FileGator/.env.example b/FileGator/.env.example new file mode 100644 index 0000000..b3de337 --- /dev/null +++ b/FileGator/.env.example @@ -0,0 +1,18 @@ +# FileGator Docker Compose - Environment Variables + +# Docker image tag to use for FileGator. Defaults to "latest" if not set. +FILEGATOR_VERSION=latest + +# Host port to expose the FileGator web UI on. Maps to container port 8080. +FILEGATOR_PORT=8080 + +# IP address or hostname of the NFS server used for both volumes. +FILEGATOR_NFS_SERVER=192.168.1.100 + +# NFS export path for the FileGator config volume (private app data). +# Example: :/mnt/pool/filegator/config +FILEGATOR_CONFIG_NFS_DEVICE=:/mnt/pool/filegator/config + +# NFS export path for the FileGator repository volume (user file storage). +# Example: :/mnt/pool/filegator/repository +FILEGATOR_REPOSITORY_NFS_DEVICE=:/mnt/pool/filegator/repository diff --git a/FileGator/docker-compose-nfs.yaml b/FileGator/docker-compose-nfs.yaml new file mode 100644 index 0000000..c5fc063 --- /dev/null +++ b/FileGator/docker-compose-nfs.yaml @@ -0,0 +1,36 @@ +services: + app: + image: filegator/filegator:${FILEGATOR_VERSION:-latest} + container_name: filegator-app + ports: + - ${FILEGATOR_PORT:-8080}:8080 + volumes: + - filegator-config:/var/www/filegator/private + - filegator-repository:/var/www/filegator/repository + healthcheck: + test: ["CMD", "timeout", "10s", "bash", "-c", ":> /dev/tcp/127.0.0.1/8080 || exit 1"] + interval: 10s + timeout: 5s + retries: 3 + start_period: 90s + deploy: + resources: + limits: + memory: 512m + restart: unless-stopped + +volumes: + filegator-config: + name: filegator-config + driver: local + driver_opts: + type: nfs + o: "addr=${FILEGATOR_NFS_SERVER},rw,noatime,rsize=65536,wsize=65536,timeo=600,nfsvers=4" + device: "${FILEGATOR_CONFIG_NFS_DEVICE}" + filegator-repository: + name: filegator-repository + driver: local + driver_opts: + type: nfs + o: "addr=${FILEGATOR_NFS_SERVER},rw,noatime,rsize=65536,wsize=65536,timeo=600,nfsvers=4" + device: "${FILEGATOR_REPOSITORY_NFS_DEVICE}" \ No newline at end of file