Docker image ()

- Config file now is inside a config folder by default, to make easier
docker integration.
- File not found errors now are debug log outputs.
- Added dependabot integration for github action versions.

Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
This commit is contained in:
Antonio Navarro Perez 2020-11-14 16:28:50 +01:00 committed by GitHub
parent 8882d80232
commit 0a4438b1ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 126 additions and 5 deletions

View file

@ -37,6 +37,7 @@
- [Getting Started](#getting-started)
- [Prerequisites on windows](#prerequisites-on-windows)
- [Usage](#usage)
- [Docker](#docker)
- [Configuration File](#configuration-file)
- [root](#root)
- [mountpoints](#mountpoints)
@ -109,6 +110,43 @@ It contains information about the mounted routes and torrent files like download
You can also modify the configuration file and reload the server from here: `http://localhost:4444/config` .
### Docker
Docker run example:
```shell
docker run \
--rm -p 4444:4444 \
--cap-add SYS_ADMIN \
--device /dev/fuse \
--security-opt apparmor:unconfined \
-v /tmp/mountpoints:/distribyted-data/mountpoints:shared \
-v /tmp/metadata:/distribyted-data/metadata \
-v /tmp/config:/distribyted-data/config \
distribyted/distribyted:latest
```
Docker compose example:
```yaml
distribyted:
container_name: distribyted
image: distribyted/distribyted:latest
restart: always
ports:
- "4444:4444/tcp"
volumes:
- /home/user/mountpoints:/distribyted-data/mountpoints:shared
- /home/user/metadata:/distribyted-data/metadata
- /home/user/config:/distribyted-data/config
security_opt:
- apparmor:unconfined
devices:
- /dev/fuse
cap_add:
- SYS_ADMIN
```
### Configuration File
#### root