filegator / filegator

Powerful Multi-User File Manager
https://filegator.io
MIT License
2.13k stars 376 forks source link

Update documentation for docker compose - how to use configuration.php, how to setup storage etc #404

Open WGandy opened 1 year ago

WGandy commented 1 year ago

I found it to be a surprising adventure to setup filegator with docker compose. Many things were not spelled out and I'm still not clear on several things.

Example: configuration.php file.

This needed to be added to the docker compose in order to use a configuration file on the host. It would be nice if this was spelled out in the example compose file.

volumes:
      - ./config/configuration.php:/var/www/filegator/configuration.php

Also, it seems that we need to build a filegator image in order to use the other storage backends. It would be great if the compose had a few more hints about how to do that.

I'm still trying to figure out how to connect to an alternative S3 service like minio. Where does the host name and port go??

andymarden commented 8 months ago

I have a similar issue - when using local storage on a docker bind mount, the whole thing runs as www-data. I need to be able to ensure that permissions set on created file and folders is correct - umask would be the normal way but I notice that Flysystem has:

 \League\Flysystem\UnixVisibility\PortableVisibilityConverter::fromArray([
         'file' => [
                'public' => 0666,
                'private' => 0660,
           ],
            'dir' => [
                'public' => 2777,
                'private' => 2770,
            ]
])

which seems exactly what I need. I imagine that is also the case in most people's multi-user shared systems. Looks like I need to build an image myself after forking the repo.

I would suggest that is added to the official image since it is so useful.

Have made this its own issue: https://github.com/filegator/filegator/issues/437