Unable to connect to my app


I'm new to docker and traefik. I'm trying to run node red via docker compose. I've added the labels and don't see any errors in the logs but when I try to connect via internet, the page displays :

This site can’t be reached

`nodered.******.fr refused to connect.`


* `Checking the connection`
* `Checking the proxy and the firewall`


and I don't understand why. Here is my compose docker for traefik and the one for my nodered :

nodered.yml :

`version: '3.8'`



`image: nodered/node-red:latest-12-minimal`

`container_name: nodered`

`user: root`


`- "traefik.enable=true"`

`- "traefik.http.routers.node.rule=Host(\`nodered.local`)"`

`- "traefik.http.routers.node.entrypoints=websecure"`

`- "traefik.http.routers.node.tls.certresolver=le"`


`- network-nodered`

`- web`


`- ./nodered_data:/data`

`restart: unless-stopped`





`name: web`

traefik. yml :

`version: '3'`



`image: traefik:v2.9`

`container_name: traefik`


`- "80:80"`

`- "443:443"`

`- "8080:8080"`


`- /var/run/docker.sock:/var/run/docker.sock`

`- $PWD/traefik.toml:/etc/traefik/traefik.toml`

`- ./acme.json:/acme.json`

`restart: always`


`- web`



`external: true`

(my firewall ports are open)

You normally can not use a local domain like nodered.local with LetsEncrypt, as that domain can not be validated.

Share you Traefik static and dynamic config, and docker-compose.yml if used. Use 3 backticks in front and after code, or select the code and use the </> button.

Check a simple Traefik example.


Node red.local was for testing, it's normally noter.***.fr.

Here is my traefik. toml :

  dashboard = true
  insecure = true

    address = ":80"
          to = "websecure"
          scheme = "https"
          permanent = true

    address = ":443"
        certResolver = "default"

    watch = true
    exposedByDefault = false
    network = "web"

      email = "contact@superman.com"
      storage = "acme.json"
      caServer = "https://acme-v01.api.letsencrypt.org/directory"

and my docker-compose.yml :

version: '3'

    image: traefik:v2.9
    container_name: traefik
      - "80:80"
      - "443:443"
      - "8080:8080"
      - /var/run/docker.sock:/var/run/docker.sock
      - $PWD/traefik.toml:/etc/traefik/traefik.toml
      - ./acme.json:/acme.json
    restart: always
      - web

    external: true

i also find this error :

traefik | time="2023-06-20T19:25:00Z" level=error msg="Unable to obtain ACME certificate for domains \"nodered.****.fr\": unable to generate a certificate for the domains [nodered.****.fr]: error: one or more domains had a problem:\n[nodered.*****.fr] acme: error: 400 :: urn:ietf:params:acme:error:connection :: 82.***.***.125: Error getting validation data\n" routerName=node@docker rule="Host(nodered.*****.fr)" providerName=le.acme ACME CA="https://acme-v02.api.letsencrypt.org/directory"

Seems your sub-domain can be resolved to IP, but it can’t be connected to.

The IP could be wrong or a firewall is in the way.

Hello again,

I found the error, I had the wrong ip address when creating my subdomain...

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.