diff --git a/readme.md b/readme.md index 92907e6..cb78e49 100644 --- a/readme.md +++ b/readme.md @@ -72,6 +72,25 @@ The application also uses: ## Installation +### Docker + +You may now install FileSharing via Docker. +See [https://hub.docker.com/r/axeloz/filesharing](https://hub.docker.com/r/axeloz/filesharing) + +``` +docker run -d \ +-p 8080:80 \ +-v :/app/storage/content \ +--name filesharing \ +-e UPLOAD_MAX_FILESIZE="1G" +axeloz/filesharing: +``` +- use the -v option to bind your local storage to the docker instance (persisting data) +- replace with latest FileSharing version +- adapt the -p option to listen to the port you need +- you may pass env variables with the -e option +- you can use a reverse proxy for SSL termination (example: nginx) + ### Standalone - configure your domain name. For example: files.yourdomain.com @@ -87,19 +106,6 @@ The application also uses: - start the Laravel scheduler (it will delete expired bundles of the storage). For example `* * * * * /usr/bin/php /path-to-your-project/artisan schedule:run >> /dev/null 2>&1` - (optional) to purge bundles manually, run `php artisan fs:bundle:purge` -### Docker [WIP] - -This is a Work In Progress. - - -``` -docker run -d \ --p 8080:80 \ --v :/app/storage/content \ ---name filesharing \ -axeloz/filesharing -``` - Use your browser to navigate to your domain name (example: files.yourdomain.com) and **that's it**.