Update README.md
This commit is contained in:
parent
1a35825107
commit
0fd69c094f
1 changed files with 5 additions and 4 deletions
|
@ -32,8 +32,7 @@ Available env variables with their default values that you can overwrite:
|
||||||
|
|
||||||
|
|
||||||
## Running in Docker
|
## Running in Docker
|
||||||
You can build your Docker image using the `docker build -t nextcloud-dlna .` command. Next, you need to run the docker
|
You can use the docker image with nextcloud-dlna e.g.:
|
||||||
image with the `net=host` option e.g:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
docker run -d \
|
docker run -d \
|
||||||
|
@ -41,7 +40,7 @@ docker run -d \
|
||||||
--net=host \
|
--net=host \
|
||||||
-v /path/to/nextcloud/app/ending/with/data:/nextcloud \
|
-v /path/to/nextcloud/app/ending/with/data:/nextcloud \
|
||||||
-e NEXTCLOUD_DATA_DIR=/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>' \
|
-e NEXTCLOUD_DB_PASS='<your_nextcloud_db_pass_here>' \
|
||||||
nextcloud-dlna
|
nextcloud-dlna
|
||||||
```
|
```
|
||||||
|
@ -51,6 +50,8 @@ 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
|
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.
|
share the host's network interfaces.
|
||||||
|
|
||||||
|
See https://hub.docker.com/r/thanek/nextcloud-dlna for more docker image details.
|
||||||
|
|
||||||
### Code used
|
### Code used
|
||||||
|
|
||||||
Some java code was taken from https://github.com/haku/dlnatoad
|
Some java code was taken from https://github.com/haku/dlnatoad
|
||||||
|
|
Loading…
Reference in a new issue