Connection refused on API request

First pointer would be to search for a tutorial about networking in Docker context :wink:

And share your docker-compose.yml so we can better understand your configuration.

Most containers by itself don’t provide TLS/SSL capabilities, but you try to connect with https.

If you want to expose multiple services/containers on the same IP:port, you can place a reverse proxy in front, which usually also manages TLS/SSL. See nginx-proxy or simple Traefik example.