Custom Rockons - Wrong webui port

I am creating a rockon for the Ubiquiti Unifi and i have it mostly working, but for some reason the webui buttion in rockstor is using the wrong port. Any idea’s why it would be doing this? I am going to try to dig though the code and see how it makes this selection. Here is the json file for the rockon

{
"Ubiquiti Unifi": {
    "containers": {
        "unifi": {
            "image": "jacobalberty/unifi",
            "launch_order": 1,
            "ports": {
                "8080": {
                    "description": "Port for UAP to inform controller (HTTP redirect for WebUI). Suggested default: 8080",
                    "host_default": 8080,
                    "label": "Redirect to WebUI",
                    "protocol": "tcp",
                    "ui": true
                },
                "8443": {
                    "description": "Port for WebUI and API. Suggested default: 8443",
                    "host_default": 8443,
                    "label": "HTTPS WebUI",
                    "protocol": "tcp",
                    "ui": false
                },
                "8081": {
                    "description": "Redirector port for wireless clients. Suggested default: 8081",
                    "host_default": 8081,
                    "label": "Redirector for wireless clients",
                    "protocol": "tcp",
                    "ui": false
                },
                "8082": {
                    "description": "Redirector port for wired clients. Suggested default: 8082",
                    "host_default": 8082,
                    "label": "Redirector for wired clients",
                    "protocol": "tcp",
                    "ui": false
                },
                "8843": {
                    "description": "Port for HTTPS portal redirect. Suggested default: 8843",
                    "host_default": 8843,
                    "label": "HTTPS portal redirect",
                    "protocol": "tcp",
                    "ui": false
                },
                "8880": {
                    "description": "Port for HTTP portal redirect. Suggested default: 8880",
                    "host_default": 8880,
                    "label": "HTTP portal redirect",
                    "protocol": "tcp",
                    "ui": false
                },
                "3478": {
                    "description": "UDP port used for STUN. Suggested default: 3478",
                    "host_default": 3478,
                    "label": "UDP STUN port",
                    "protocol": "udp",
                    "ui": false
                }
            },
            "volumes": {
                "/var/lib/unifi": {
                    "description": "Choose a Share for Unifi Controller configuration. Eg: create a Share called unifi-config for this purpose alone.",
                    "label": "Config Storage"
                }
            }
        }
    },
    "description": "Unifi Access Point controller",
    "more_info": "This is a containerized version of Ubiquiti Network's Unifi Controller.",
    "volume_add_support": false,
    "ui": {
        "slug": ""
    },
    "website": "https://hub.docker.com/r/jacobalberty/unifi/",
    "version": "1.0"
}

}

1 Like

Well nevermind, i figured out that it was using the set port number from the install.