Dial tcp: lookup service on 10.0.2.3:53: no such host

#1

$ sudo cat /var/lib/rancher/conf/docker-compose.yml

    mqtt-broker:
        image: eclipse-mosquitto:1.5.8
        ports:
            - 1883:1883
        volumes:
            - /tmp/data/mosquitto/logs:/mosquitto/log
            - /tmp/data/mosquitto/data:/mosquitto/data
            - /tmp/data/mosquitto/config:/mosquitto/config:ro
        restart: on-failure

    gateway:
        image: my-service:1.0.0
        depends_on:
            - mqtt-broker
        environment:
            APP_MQTT_BROKER_URL: "tcp://mqtt-broker:1883"

But I get:

$ sudo ros service logs gateway
Network Error : dial tcp: lookup mqtt-broker on 10.0.2.3:53: no such host

How can I make services talk with each other?