From fe00d1dac81fc4a5083037328142c76ccb230ece Mon Sep 17 00:00:00 2001 From: xis Date: Tue, 31 Oct 2023 18:25:34 +0100 Subject: [PATCH] Nextcloud-DLNA community container (#3614) --- community-containers/dlna/dlna.json | 39 +++++++++++++++++++++++++++++ community-containers/dlna/readme.md | 15 +++++++++++ 2 files changed, 54 insertions(+) create mode 100755 community-containers/dlna/dlna.json create mode 100755 community-containers/dlna/readme.md diff --git a/community-containers/dlna/dlna.json b/community-containers/dlna/dlna.json new file mode 100755 index 00000000..ac37e4ec --- /dev/null +++ b/community-containers/dlna/dlna.json @@ -0,0 +1,39 @@ +{ + "aio_services_v1": [ + { + "container_name": "nextcloud-aio-dlna", + "display_name": "DLNA", + "documentation": "https://github.com/nextcloud/all-in-one/tree/main/community-containers/dlna", + "image": "thanek/nextcloud-dlna", + "image_tag": "latest", + "internal_port": "host", + "restart": "unless-stopped", + "depends_on": [ + "nextcloud-aio-database" + ], + "environment": [ + "NC_DOMAIN=%NC_DOMAIN%", + "NC_PORT=443", + "NEXTCLOUD_DLNA_SERVER_PORT=9999", + "NEXTCLOUD_DLNA_FRIENDLY_NAME=nextcloud-aio", + "NEXTCLOUD_DATA_DIR=/data", + "NEXTCLOUD_DB_TYPE=postgres", + "NEXTCLOUD_DB_HOST=%AIO_DATABASE_HOST%", + "NEXTCLOUD_DB_PORT=5432", + "NEXTCLOUD_DB_NAME=nextcloud_database", + "NEXTCLOUD_DB_USER=oc_nextcloud", + "NEXTCLOUD_DB_PASS=%DATABASE_PASSWORD%" + ], + "secrets": [ + "DATABASE_PASSWORD" + ], + "volumes": [ + { + "source": "%NEXTCLOUD_DATADIR%", + "destination": "/data", + "writeable": false + } + ] + } + ] +} diff --git a/community-containers/dlna/readme.md b/community-containers/dlna/readme.md new file mode 100755 index 00000000..7a041b5e --- /dev/null +++ b/community-containers/dlna/readme.md @@ -0,0 +1,15 @@ +## DLNA server +This container bundles DLNA server for your Nextcloud files to be accessible by the clients in your local network. Simply run the container and look for a new media server `nextcloud-aio` in your local network. + +### Notes +- This container will work only if the Nextcloud installation is in your home network, it is not suitable for installations on remote servers. +- This is not working with Docker Desktop since it requires the `host` networking mode in docker, and it doesn't really share the host's network interfaces in this system +- If you have a firewall like ufw configured, you might need to open at least port 9999 TCP and 1900 UDP first in order to make it work. +- See https://github.com/nextcloud/all-in-one/tree/main/community-containers#community-containers how to add it to the AIO stack + +### Repository +https://github.com/thanek/nextcloud-dlna + +### Maintainer +https://github.com/thanek +