Can't start mattermost in docker: config.is_valid.site_url.app_error

Mattermost in docker hates my development site url, and it’s probably something simple. Can someone please help?

I have provided Perfectly valid SiteUrl argument similar to (“”)
The app is running as root within the docker container
The container is behind a reverse proxy providing https termination and is accessible from the internet
I have even tested the go parsing of this, and I have zero idea why it does not work.
here is the first few lines of my config

    "ServiceSettings": {
        "SiteURL": "",
        "WebsocketURL": "",
        "LicenseFileLocation": "",
        "ListenAddress": ":80",
        "ConnectionSecurity": "",
        "TLSCertFile": "",
        "TLSKeyFile": "",
        "TLSMinVer": "1.2",

And the full error looks like this: | Using existing config file /mattermost/config/config.json | Starting mattermost | Error: failed to load configuration: failed to create store: unable to load on store creation: invalid config: Config.IsValid: model.config.is_valid.site_url.app_error,


not sure if you managed to fix this problem already, but this is mostly caused by an outdated docker-compose version.