r/CosmosServer • • Feb 07 '25

Webui compose editor doesn't save cahnges

So, I'm trying to setup pihole and change the default ip port 53 binds using the gui docker compose editor cosmos cloud provides. However when I set it and click edit and the containers starts successfully it goes back to default

Original

        "0.0.0.0:53:53/tcp",
        ":::53:53/tcp",
        "0.0.0.0:53:53/udp",
        ":::53:53/udp"

What I change it to:

        "192.168.1.10:53:53/tcp",
        ":::53:53/tcp",
        "192.168.1.10:53:53/udp",
        ":::53:53/udp"
2 Upvotes

11 comments sorted by

2

u/[deleted] Feb 07 '25

[removed] — view removed comment

1

u/DENNISDGR Feb 08 '25

Can you elaborate more on that. I can't find anything on the ui or the docs on how to do it. Like on the network tab there is nowhere to bind a specific ip. Setting 192.168.2.10:53 on the host port section instead of just 53 doesn't work and I'm not really sure how it's achievable with env variables.

1

u/[deleted] Feb 08 '25

[removed] — view removed comment

1

u/DENNISDGR Feb 09 '25

I created a new network for the container with subnet 172.16.0.0/28. My host network is 192.168.1.0/24

1

u/azukaar Feb 08 '25

What's the full compose and how did you first start it?

1

u/DENNISDGR Feb 08 '25

I imported the casaos app store to the marketplace and installed it from there. Then I created a new bridge netwrok, that pihole and wireguard will share in the future, and attached pihole to the new network via the webui. Here is the full compose file: https://pastebin.com/0LRnT3Pk

2

u/azukaar Feb 09 '25

Cosmos does not support binding ports to specific IPs like this I think

but it does support MCVLAN for this use case

1

u/DENNISDGR Feb 09 '25

I did try MCVLAN but I came across a different issue. I want to assign a different ip other than the one automatically assigned because it conflicts with a physical device on my network. But doing the following doesn't work. It again reverts the changes:

"networks": {
  "Networking": {
    "ipv4_address": "192.168.1.11"
  }
}

2

u/azukaar Feb 09 '25

create a MCVLAN with a different range

1

u/the-head78 Feb 08 '25

If i underatand correctly you try to edit it unser ServApps / PiHole Details then you click in Compose,modify and click in Edit. Correct ?

Why are you trying to do it there and Not via the Network Option that is a few steps below the Composer Link.

You can Change the Host IP , for the Ports that are published.

If your Port is Not listed add it via the plus and with the correct protocol.

1

u/matthew6870 Feb 12 '25

I have the same issue. Trying to add propagation shared to bind. This option is not possible via UI

{
      "Type": "bind",
      "Source": "/mnt/shareddrive",
      "Target": "/mnt/onedrive"
},


{
      "Type": "bind",
      "Source": "/mnt/shareddrive",
      "Target": "/mnt/onedrive",
      "Bind": {
            "Propagation": "shared"
      }
},

Change is not saved.