Update README.md

This commit is contained in:
xis 2023-10-17 16:13:57 +02:00 committed by GitHub
parent 1a35825107
commit 0fd69c094f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,8 +32,7 @@ Available env variables with their default values that you can overwrite:
## Running in Docker
You can build your Docker image using the `docker build -t nextcloud-dlna .` command. Next, you need to run the docker
image with the `net=host` option e.g:
You can use the docker image with nextcloud-dlna e.g.:
```
docker run -d \
@ -41,7 +40,7 @@ docker run -d \
--net=host \
-v /path/to/nextcloud/app/ending/with/data:/nextcloud \
-e NEXTCLOUD_DATA_DIR=/nextcloud \
-e NEXTCLOUD_DB_HOST='<your_host_ip_here>' \
-e NEXTCLOUD_DB_HOST='<your_nextcloud_db_host_ip_here>' \
-e NEXTCLOUD_DB_PASS='<your_nextcloud_db_pass_here>' \
nextcloud-dlna
```
@ -51,8 +50,10 @@ You can pass to the container other env variables that are listed above.
Note that it would not work on Mac OS since docker is a Linux container and the `host` networking mode doesn't actually
share the host's network interfaces.
See https://hub.docker.com/r/thanek/nextcloud-dlna for more docker image details.
### Code used
Some java code was taken from https://github.com/haku/dlnatoad
and https://github.com/UniversalMediaServer/UniversalMediaServer converted to Kotlin with upgrade to jupnp instead of
cling.
cling.