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}"