created filegator

This commit is contained in:
2026-05-11 22:57:15 -07:00
parent 455dfc9251
commit 4aaf6365c9
2 changed files with 54 additions and 0 deletions
+18
View File
@@ -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
+36
View File
@@ -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}"