mirror of
https://github.com/axeloz/filesharing.git
synced 2025-05-06 10:03:55 +02:00
Update readme.md
This commit is contained in:
parent
5ebb00b13e
commit
d009b04849
1 changed files with 19 additions and 13 deletions
32
readme.md
32
readme.md
|
@ -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**.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue