Skip to content

Commit

Permalink
Merge pull request #5 from thanek/thanek-patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
thanek authored Oct 17, 2023
2 parents 1a35825 + 0fd69c0 commit 59ea5a3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,15 @@ 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 \
--name="nextcloud-dlna" \
--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
```
Expand All @@ -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.

0 comments on commit 59ea5a3

Please sign in to comment.