Update readme.md

This commit is contained in:
Axel 2023-06-23 10:35:48 +02:00 committed by GitHub
parent 5ebb00b13e
commit d009b04849
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,6 +72,25 @@ The application also uses:
## Installation ## 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 <local_path>:/app/storage/content \
--name filesharing \
-e UPLOAD_MAX_FILESIZE="1G"
axeloz/filesharing:<version>
```
- use the -v option to bind your local storage to the docker instance (persisting data)
- replace <version> 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 ### Standalone
- configure your domain name. For example: files.yourdomain.com - 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` - 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` - (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 <local_path>:/app/storage/content \
--name filesharing \
axeloz/filesharing
```
Use your browser to navigate to your domain name (example: files.yourdomain.com) and **that's it**. Use your browser to navigate to your domain name (example: files.yourdomain.com) and **that's it**.