-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add container to AIOs community containers to make configuration for them easier #1
Comments
Thanks, I'll take a look at it! |
I've created a file very similar to your example and it worked on my mac book, but there is a known issue with the "host" networking type on docker, so I cannot access the host's main network interface and test if the whole UPnP communication works well. I'll try to create a Linux machine in my local network and test it :) |
I made some experiments and finally managed nextcloud-dlna to work inside the nextcloud-aio and finally I was able to get content of the I've handled it by modifying the database container by adding the port mappings:
in the database container section. This change makes postgres available by the host and by my container under However, this change is quite significant and I don't know if you'll be okay with it. Or maybe you have any suggestion how to avoid this problem? From what I know, the UPnP protocol requires the access to "main" network interface since it is initialized by multicast udp requests which are received by other machines in the local network, so I guess, there is no way to avoid the network=host option (from what I've seen, the Plex container also uses this option). Btw, I need to make some minor fixes in my code, because I found some bugs when experimenting with aio ;) P.S. The final version of dlna.json would then look like this:
|
@szaimen I think, I've found a better solution to the problem. I've introduced new env variable placeholder
With this approach we avoid exposing the postgresql port on the host network and the database is still accessible with use of the DB-container's IP address. I've also added the What do you think about it? |
That looks like a good idea! Just created a PR to add this: nextcloud/all-in-one#3611. |
If the container runs in host mode, you don't need to specify the port it uses btw :) So the following should work:
|
Yeah, you're right about the ports, thanks! :) |
OK, right after you add the AIO_DATABASE_HOST variable support, my PR with the nextcloud-dlna as a community-container in AIO will be ready for a review: nextcloud/all-in-one#3614 :) |
OK, so the |
Hi, I just wanted to mention that AiO has this now: https://github.com/nextcloud/all-in-one/tree/main/community-containers#how-to-add-containers. So the community could potentially add the container
as additional container there. Feel free to ping me if you should need help on this!
Regarding the json, I just leave this here as an example:
The text was updated successfully, but these errors were encountered: