Traefik SwarmMode cant see containers on worker node

Hello,

I am currently running a docker swarm with 5 nodes (3 managers and 2 workers nodes in AWS). I have full connectivity between all nodes and deploying a stack is no issue. Before I expanded the cluster I was able to run my full Atlassian stack with Traefik as the proxy with no issues. Once I added another worker node and moved Traefik to the manager nodes now I cannot see any of my containers even though I can see all of my containers running if I ssh or use portainer to see the rest of my nodes. I have tried numerous different commands in my docker-compose.yml and still no luck. The dashboard for Traefik comes up fine but with no info on the containers and in my logs for traefik it says no bind port. I have tried the load balancer port, turned on swarm-mode, and moved the labels to the service and still no luck. If anybody could please take a look at my config and see if I missed something it would be greatly appreciated. In the docker-stack.yml I will condense it to just include traefik and one service Nexus.


version: "3.7"

networks:
  web:

services:
############################################################
## Nexus
############################################################
  nexus:
    image: earlpomeroy/sonatype-nexus3:3.20.1
    deploy:
      lables:
#        - traefik.tags=web
#        - "traefik.backend=nexus"
#        - "traefik.port=8081"
        - "traefik.enable=true"
#        - "traefik.docker.network=Atlassian_web"
#        - "traefik.frontend.rule=PathPrefix:/nexus"
#        - traefik.frontend.rule=Host:nexus.elb.systems
#        - "traefik.http.routers.nexus.rule=Host(`nexus.elb.systems`)"
#        - "traefik.http.services.nexus.loadbalancer.server.port=80"
#        - "traefik.http.routers.nexus-web.entrypoints=web"
#        - "traefik.http.routers.nexus-web.middlewares=redirect@file"
        - "traefik.http.routers.nexus-secured.rule=Host(`nexus.elb.systems`)"
        - "traefik.http.routers.nexus-secured.entrypoints=web-secured"
        - "traefik.http.routers.nexus-secured.tls.certresolver=le-tlschallenge"
        - "traefik.http.routers.nexus-web.service=web"
      placement:
        constraints: [node.role == worker]
         # - "node.role==worker"
      ports:
        - 8081:8081
    volumes:
      - /mnt/efs/nexus-data:/nexus-data
    networks:
      - web
    environment:
      INSTALL4J_ADD_VM_PARAMS: "-Xms2g -Xmx2g -XX:MaxDirectMemorySize=3g"
    deploy:
      replicas: 1
      restart_policy:
        condition: on-failure
    healthcheck:
      test: curl -f http://localhost:8081 || exit 1
      interval: 1m30s
      timeout: 10s
      retries: 3
      start_period: 90s
#    labels:
#      - traefik.enable=true
#      - traefik.docker.network=Atlassian_web
#      - traefik.http.routers.nexus-web.rule=Host(`nexus.elb.systems`)
#      - traefik.http.routers.nexus-web.entrypoints=web
#      - traefik.http.routers.nexus-web.middlewares=redirect@file
#      - traefik.http.routers.nexus-secured.rule=Host(`nexus.elb.systems`)
#      - traefik.http.routers.nexus-secured.entrypoints=web-secured
#      - traefik.http.routers.nexus-secured.tls.certresolver=le-tlschallenge


############################################################
## Traefik
############################################################
  traefik:
    image: traefik:v2.2
    deploy:
      labels:
 #       - "traefik.http.services.traefik.loadbalaner.server.port=80"
        - "traefik.enable=true"
        - "traefik.http.routers.api.rule=Host(`traefik.elb.systems`)"
        - "traefik.http.routers.api.service=api@internal"
        - "traefik.http.routers.api.middlewares=dashauth"
        - "traefik.http.middlewares.dashauth.basicauth.users=admin:############################"
 #       - "traefik.http.routers.traefik-web.entrypoints=web"
      placement:
        constraints: [node.role == manager]
#        constraints: [node.hostname == traefik]
         # - "node.role==worker"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - ./letsencrypt:/letsencrypt
      - ./dynamic.yml:/dynamic.yml
    networks:
      - web
    ports:
      - 80:80
      - 443:443
      - 8080:8080
    command:
      #### Configuration for Traefik in the docker stack file ####
      ## API Settings
      - "--api.insecure=true"
      - "--api.dashboard=true"
      - "--api.debug=true"
      ## Log Settings
      - --log.level=DEBUG
      ## Provider Settings
      - "--providers.docker=true"
      - "--providers.docker.exposedbydefault=false"
#      - --traefik.docker.lbswarm=true
      - "--providers.file.filename=/dynamic.yml"
      - "--providers.docker.network=Atlassian_web"
      - "--providers.docker.watch"
      - "--providers.docker.swarmMode=true"
#      - "--providers.docker.endpoint=tcp://127.0.0.1:2375"
#      - "--providers.docker.endpoint=unix:///var/run/docker.sock"
#      - "--providers.docker.useBindPortIP=true"
#      - "--providers.docker.swarmModeRefreshSeconds=30s"
     ## Entrypoints Settings
      - "--entrypoints.web.address=:80"
      - "--entrypoints.web-secured.address=:443"
      ## Certificate Settings
      - "--certificatesresolvers.le-tlschallenge.acme.tlschallenge=true"
      - "--certificatesresolvers.le-tlschallenge.acme.email=abc@somedomain.com"
      - "--certificatesresolvers.le-tlschallenge.acme.storage=/letsencrypt/acme.json"
      # DEBUG settings for Let's Encrypt staging certificate generation (Comment out for production)
      - --certificatesResolvers.le.acme.caServer=https://acme-staging-v02.api.letsencrypt.org/directory
#    deploy:
#      replicas: 1
#      restart_policy:
#        condition: on-failure
      #    healthcheck:
      #      test: curl -I -k --connect-timeout 2 --resolve traefik.elb.systems:443:127.0.0.1 https://traefik.elb.systems/ || exit 1
      #      interval: 1m30s
      #      timeout: 10s
      #      retries: 3
      #      start_period: 90s
    labels:
      - traefik.frontend.rule=Host:traefik.elb.systems
      - traefik.backend=traefik.elb.systems
      - traefik.docker.network=web
      - traefik.enable=true
      - traefik.http.routers.api.rule=Host(`traefik.elb.systems`)
      - traefik.http.routers.api.service=api@internal
      - traefik.http.routers.api.middlewares=dashauth
      - traefik.http.middlewares.dashauth.basicauth.users=admin:$$apr1$$u/4vtp.w$$2ziKXi66aZGOs8WmFFPmb0

Hi @asmall

This is really unreadable. Can you update the formatting please ?

version: "3.7"

networks:
  web:

services:
############################################################
## Nexus
############################################################
  nexus:
    image: earlpomeroy/sonatype-nexus3:3.20.1
    deploy:
      lables:
#        - traefik.tags=web
#        - "traefik.backend=nexus"
#        - "traefik.port=8081"
        - "traefik.enable=true"
#        - "traefik.docker.network=Atlassian_web"
#        - "traefik.frontend.rule=PathPrefix:/nexus"
#        - traefik.frontend.rule=Host:nexus.elb.systems
#        - "traefik.http.routers.nexus.rule=Host(`nexus.elb.systems`)"
#        - "traefik.http.services.nexus.loadbalancer.server.port=80"
#        - "traefik.http.routers.nexus-web.entrypoints=web"
#        - "traefik.http.routers.nexus-web.middlewares=redirect@file"
        - "traefik.http.routers.nexus-secured.rule=Host(`nexus.elb.systems`)"
        - "traefik.http.routers.nexus-secured.entrypoints=web-secured"
        - "traefik.http.routers.nexus-secured.tls.certresolver=le-tlschallenge"
        - "traefik.http.routers.nexus-web.service=web"
      placement:
        constraints: [node.role == worker]
         # - "node.role==worker"
      ports:
        - 8081:8081
    volumes:
      - /mnt/efs/nexus-data:/nexus-data
    networks:
      - web
    environment:
      INSTALL4J_ADD_VM_PARAMS: "-Xms2g -Xmx2g -XX:MaxDirectMemorySize=3g"
    deploy:
      replicas: 1
      restart_policy:
        condition: on-failure
    healthcheck:
      test: curl -f http://localhost:8081 || exit 1
      interval: 1m30s
      timeout: 10s
      retries: 3
      start_period: 90s
#    labels:
#      - traefik.enable=true
#      - traefik.docker.network=Atlassian_web
#      - traefik.http.routers.nexus-web.rule=Host(`nexus.elb.systems`)
#      - traefik.http.routers.nexus-web.entrypoints=web
#      - traefik.http.routers.nexus-web.middlewares=redirect@file
#      - traefik.http.routers.nexus-secured.rule=Host(`nexus.elb.systems`)
#      - traefik.http.routers.nexus-secured.entrypoints=web-secured
#      - traefik.http.routers.nexus-secured.tls.certresolver=le-tlschallenge


############################################################
## Traefik
############################################################
  traefik:
    image: traefik:v2.2
    deploy:
      labels:
 #       - "traefik.http.services.traefik.loadbalaner.server.port=80"
        - "traefik.enable=true"
        - "traefik.http.routers.api.rule=Host(`traefik.elb.systems`)"
        - "traefik.http.routers.api.service=api@internal"
        - "traefik.http.routers.api.middlewares=dashauth"
        - "traefik.http.middlewares.dashauth.basicauth.users=admin:############################"
 #       - "traefik.http.routers.traefik-web.entrypoints=web"
      placement:
        constraints: [node.role == manager]
#        constraints: [node.hostname == traefik]
         # - "node.role==worker"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - ./letsencrypt:/letsencrypt
      - ./dynamic.yml:/dynamic.yml
    networks:
      - web
    ports:
      - 80:80
      - 443:443
      - 8080:8080
    command:
      #### Configuration for Traefik in the docker stack file ####
      ## API Settings
      - "--api.insecure=true"
      - "--api.dashboard=true"
      - "--api.debug=true"
      ## Log Settings
      - --log.level=DEBUG
      ## Provider Settings
      - "--providers.docker=true"
      - "--providers.docker.exposedbydefault=false"
#      - --traefik.docker.lbswarm=true
      - "--providers.file.filename=/dynamic.yml"
      - "--providers.docker.network=Atlassian_web"
      - "--providers.docker.watch"
      - "--providers.docker.swarmMode=true"
#      - "--providers.docker.endpoint=tcp://127.0.0.1:2375"
#      - "--providers.docker.endpoint=unix:///var/run/docker.sock"
#      - "--providers.docker.useBindPortIP=true"
#      - "--providers.docker.swarmModeRefreshSeconds=30s"
     ## Entrypoints Settings
      - "--entrypoints.web.address=:80"
      - "--entrypoints.web-secured.address=:443"
      ## Certificate Settings
      - "--certificatesresolvers.le-tlschallenge.acme.tlschallenge=true"
      - "--certificatesresolvers.le-tlschallenge.acme.email=abc@somedomain.com"
      - "--certificatesresolvers.le-tlschallenge.acme.storage=/letsencrypt/acme.json"
      # DEBUG settings for Let's Encrypt staging certificate generation (Comment out for production)
      - --certificatesResolvers.le.acme.caServer=https://acme-staging-v02.api.letsencrypt.org/directory
#    deploy:
#      replicas: 1
#      restart_policy:
#        condition: on-failure
      #    healthcheck:
      #      test: curl -I -k --connect-timeout 2 --resolve traefik.elb.systems:443:127.0.0.1 https://traefik.elb.systems/ || exit 1
      #      interval: 1m30s
      #      timeout: 10s
      #      retries: 3
      #      start_period: 90s
    labels:
      - traefik.frontend.rule=Host:traefik.elb.systems
      - traefik.backend=traefik.elb.systems
      - traefik.docker.network=web
      - traefik.enable=true
      - traefik.http.routers.api.rule=Host(`traefik.elb.systems`)
      - traefik.http.routers.api.service=api@internal
      - traefik.http.routers.api.middlewares=dashauth
      - traefik.http.middlewares.dashauth.basicauth.users=admin:$$apr1$$u/4vtp.w$$2ziKXi66aZGOs8WmFFPmb0

@cakiwi Sorry about that!

This is the errors that I am getting from Traefik.

time="2020-04-28T17:12:44Z" level=error msg="service \"Atlassian-traefik\" error: port is missing" providerName=docker container=Atlassian-traefik-pew5s07lp31hq2blq0tmtayw2,
time="2020-04-28T17:12:44Z" level=debug msg="Filtering disabled container" providerName=docker container=Atlassian-bitbucket-nbs14ules2bwltmmrfvip0o4n,
time="2020-04-28T17:12:44Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-0puq530r6nvq8l30virce89jc,
time="2020-04-28T17:12:44Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-lua0b3ko0z8x3g181ur1iivz5,
time="2020-04-28T17:12:44Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-p4ai8plvmiiteynpyvgji4vsq,
time="2020-04-28T17:12:44Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-tsgk21mt4daf1tnfzwyau8oq5,
time="2020-04-28T17:12:44Z" level=debug msg="Filtering disabled container" container=portainer-agent-vkh0xmbpr2u96oopisv94bskx providerName=docker,
time="2020-04-28T17:12:44Z" level=debug msg="Configuration received from provider docker: {\"http\":{},\"tcp\":{},\"udp\":{}}" providerName=docker,
time="2020-04-28T17:12:44Z" level=info msg="Skipping same configuration" providerName=docker,
time="2020-04-28T17:12:59Z" level=debug msg="Filtering disabled container" container=portainer-portainer-82buylhgx71e0m3ie5w8371p8 providerName=docker,
time="2020-04-28T17:12:59Z" level=debug msg="Filtering disabled container" container=Atlassian-confluence-8m6zaco3k26tf3k7q87t4lwsh providerName=docker,
time="2020-04-28T17:12:59Z" level=debug msg="Filtering disabled container" container=Atlassian-nexus-w3s516rr5pg9lsrb99n95y1za providerName=docker,
time="2020-04-28T17:12:59Z" level=debug msg="Filtering disabled container" providerName=docker container=Atlassian-jira-d36dr5k5xy7r5caglvlq41gj7,
time="2020-04-28T17:12:59Z" level=error msg="service \"Atlassian-traefik\" error: port is missing" container=Atlassian-traefik-pew5s07lp31hq2blq0tmtayw2 providerName=docker,
time="2020-04-28T17:12:59Z" level=debug msg="Filtering disabled container" providerName=docker container=Atlassian-bitbucket-nbs14ules2bwltmmrfvip0o4n,
time="2020-04-28T17:12:59Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-0puq530r6nvq8l30virce89jc,
time="2020-04-28T17:12:59Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-lua0b3ko0z8x3g181ur1iivz5,
time="2020-04-28T17:12:59Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-p4ai8plvmiiteynpyvgji4vsq,
time="2020-04-28T17:12:59Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-tsgk21mt4daf1tnfzwyau8oq5,
time="2020-04-28T17:12:59Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-vkh0xmbpr2u96oopisv94bskx,
time="2020-04-28T17:12:59Z" level=debug msg="Configuration received from provider docker: {\"http\":{},\"tcp\":{},\"udp\":{}}" providerName=docker,
time="2020-04-28T17:12:59Z" level=info msg="Skipping same configuration" providerName=docker,
time="2020-04-28T17:13:14Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-portainer-82buylhgx71e0m3ie5w8371p8,
time="2020-04-28T17:13:14Z" level=debug msg="Filtering disabled container" providerName=docker container=Atlassian-confluence-8m6zaco3k26tf3k7q87t4lwsh,
time="2020-04-28T17:13:14Z" level=debug msg="Filtering disabled container" container=Atlassian-nexus-w3s516rr5pg9lsrb99n95y1za providerName=docker,
time="2020-04-28T17:13:14Z" level=debug msg="Filtering disabled container" providerName=docker container=Atlassian-jira-d36dr5k5xy7r5caglvlq41gj7,
time="2020-04-28T17:13:14Z" level=error msg="service \"Atlassian-traefik\" error: port is missing" providerName=docker container=Atlassian-traefik-pew5s07lp31hq2blq0tmtayw2,
time="2020-04-28T17:13:14Z" level=debug msg="Filtering disabled container" providerName=docker container=Atlassian-bitbucket-nbs14ules2bwltmmrfvip0o4n,
time="2020-04-28T17:13:14Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-0puq530r6nvq8l30virce89jc,
time="2020-04-28T17:13:14Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-lua0b3ko0z8x3g181ur1iivz5,
time="2020-04-28T17:13:14Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-p4ai8plvmiiteynpyvgji4vsq,
time="2020-04-28T17:13:14Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-tsgk21mt4daf1tnfzwyau8oq5,
time="2020-04-28T17:13:14Z" level=debug msg="Filtering disabled container" container=portainer-agent-vkh0xmbpr2u96oopisv94bskx providerName=docker,
time="2020-04-28T17:13:14Z" level=debug msg="Configuration received from provider docker: {\"http\":{},\"tcp\":{},\"udp\":{}}" providerName=docker,
time="2020-04-28T17:13:14Z" level=info msg="Skipping same configuration" providerName=docker,
time="2020-04-28T17:13:29Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-portainer-82buylhgx71e0m3ie5w8371p8,
time="2020-04-28T17:13:29Z" level=debug msg="Filtering disabled container" providerName=docker container=Atlassian-confluence-8m6zaco3k26tf3k7q87t4lwsh,
time="2020-04-28T17:13:29Z" level=debug msg="Filtering disabled container" providerName=docker container=Atlassian-nexus-w3s516rr5pg9lsrb99n95y1za,
time="2020-04-28T17:13:29Z" level=debug msg="Filtering disabled container" providerName=docker container=Atlassian-jira-d36dr5k5xy7r5caglvlq41gj7,
time="2020-04-28T17:13:29Z" level=error msg="service \"Atlassian-traefik\" error: port is missing" providerName=docker container=Atlassian-traefik-pew5s07lp31hq2blq0tmtayw2,
time="2020-04-28T17:13:29Z" level=debug msg="Filtering disabled container" container=Atlassian-bitbucket-nbs14ules2bwltmmrfvip0o4n providerName=docker,
time="2020-04-28T17:13:29Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-0puq530r6nvq8l30virce89jc,
time="2020-04-28T17:13:29Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-lua0b3ko0z8x3g181ur1iivz5,
time="2020-04-28T17:13:29Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-p4ai8plvmiiteynpyvgji4vsq,
time="2020-04-28T17:13:29Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-tsgk21mt4daf1tnfzwyau8oq5,
time="2020-04-28T17:13:29Z" level=debug msg="Filtering disabled container" container=portainer-agent-vkh0xmbpr2u96oopisv94bskx providerName=docker,
time="2020-04-28T17:13:29Z" level=debug msg="Configuration received from provider docker: {\"http\":{},\"tcp\":{},\"udp\":{}}" providerName=docker,
time="2020-04-28T17:13:29Z" level=info msg="Skipping same configuration" providerName=docker,
time="2020-04-28T17:13:44Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-portainer-82buylhgx71e0m3ie5w8371p8,
time="2020-04-28T17:13:44Z" level=debug msg="Filtering disabled container" providerName=docker container=Atlassian-confluence-8m6zaco3k26tf3k7q87t4lwsh,
time="2020-04-28T17:13:44Z" level=debug msg="Filtering disabled container" providerName=docker container=Atlassian-nexus-w3s516rr5pg9lsrb99n95y1za,
time="2020-04-28T17:13:44Z" level=debug msg="Filtering disabled container" providerName=docker container=Atlassian-jira-d36dr5k5xy7r5caglvlq41gj7,
time="2020-04-28T17:13:44Z" level=error msg="service \"Atlassian-traefik\" error: port is missing" providerName=docker container=Atlassian-traefik-pew5s07lp31hq2blq0tmtayw2,
time="2020-04-28T17:13:44Z" level=debug msg="Filtering disabled container" providerName=docker container=Atlassian-bitbucket-nbs14ules2bwltmmrfvip0o4n,
time="2020-04-28T17:13:44Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-0puq530r6nvq8l30virce89jc,
time="2020-04-28T17:13:44Z" level=debug msg="Filtering disabled container" container=portainer-agent-lua0b3ko0z8x3g181ur1iivz5 providerName=docker,
time="2020-04-28T17:13:44Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-p4ai8plvmiiteynpyvgji4vsq,
time="2020-04-28T17:13:44Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-tsgk21mt4daf1tnfzwyau8oq5,
time="2020-04-28T17:13:44Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-vkh0xmbpr2u96oopisv94bskx,
time="2020-04-28T17:13:44Z" level=debug msg="Configuration received from provider docker: {\"http\":{},\"tcp\":{},\"udp\":{}}" providerName=docker,
time="2020-04-28T17:13:44Z" level=info msg="Skipping same configuration" providerName=docker,
time="2020-04-28T17:13:59Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-portainer-82buylhgx71e0m3ie5w8371p8,
time="2020-04-28T17:13:59Z" level=debug msg="Filtering disabled container" container=Atlassian-confluence-8m6zaco3k26tf3k7q87t4lwsh providerName=docker,
time="2020-04-28T17:13:59Z" level=debug msg="Filtering disabled container" providerName=docker container=Atlassian-nexus-w3s516rr5pg9lsrb99n95y1za,
time="2020-04-28T17:13:59Z" level=debug msg="Filtering disabled container" providerName=docker container=Atlassian-jira-d36dr5k5xy7r5caglvlq41gj7,
time="2020-04-28T17:13:59Z" level=error msg="service \"Atlassian-traefik\" error: port is missing" providerName=docker container=Atlassian-traefik-pew5s07lp31hq2blq0tmtayw2,
time="2020-04-28T17:13:59Z" level=debug msg="Filtering disabled container" providerName=docker container=Atlassian-bitbucket-nbs14ules2bwltmmrfvip0o4n,
time="2020-04-28T17:13:59Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-0puq530r6nvq8l30virce89jc,
time="2020-04-28T17:13:59Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-lua0b3ko0z8x3g181ur1iivz5,
time="2020-04-28T17:13:59Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-p4ai8plvmiiteynpyvgji4vsq,
time="2020-04-28T17:13:59Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-tsgk21mt4daf1tnfzwyau8oq5,
time="2020-04-28T17:13:59Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-vkh0xmbpr2u96oopisv94bskx,
time="2020-04-28T17:13:59Z" level=debug msg="Configuration received from provider docker: {\"http\":{},\"tcp\":{},\"udp\":{}}" providerName=docker,
time="2020-04-28T17:13:59Z" level=info msg="Skipping same configuration" providerName=docker,
time="2020-04-28T17:14:14Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-portainer-82buylhgx71e0m3ie5w8371p8,
time="2020-04-28T17:14:14Z" level=debug msg="Filtering disabled container" container=Atlassian-confluence-8m6zaco3k26tf3k7q87t4lwsh providerName=docker,
time="2020-04-28T17:14:14Z" level=debug msg="Filtering disabled container" providerName=docker container=Atlassian-nexus-w3s516rr5pg9lsrb99n95y1za,
time="2020-04-28T17:14:14Z" level=debug msg="Filtering disabled container" container=Atlassian-jira-d36dr5k5xy7r5caglvlq41gj7 providerName=docker,
time="2020-04-28T17:14:14Z" level=error msg="service \"Atlassian-traefik\" error: port is missing" container=Atlassian-traefik-pew5s07lp31hq2blq0tmtayw2 providerName=docker,
time="2020-04-28T17:14:14Z" level=debug msg="Filtering disabled container" providerName=docker container=Atlassian-bitbucket-nbs14ules2bwltmmrfvip0o4n,
time="2020-04-28T17:14:14Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-0puq530r6nvq8l30virce89jc,
time="2020-04-28T17:14:14Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-lua0b3ko0z8x3g181ur1iivz5,
time="2020-04-28T17:14:14Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-p4ai8plvmiiteynpyvgji4vsq,
time="2020-04-28T17:14:14Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-tsgk21mt4daf1tnfzwyau8oq5,
time="2020-04-28T17:14:14Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-vkh0xmbpr2u96oopisv94bskx,
time="2020-04-28T17:14:14Z" level=debug msg="Configuration received from provider docker: {\"http\":{},\"tcp\":{},\"udp\":{}}" providerName=docker,
time="2020-04-28T17:14:14Z" level=info msg="Skipping same configuration" providerName=docker,
time="2020-04-28T17:14:29Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-portainer-82buylhgx71e0m3ie5w8371p8,
time="2020-04-28T17:14:29Z" level=debug msg="Filtering disabled container" providerName=docker container=Atlassian-confluence-8m6zaco3k26tf3k7q87t4lwsh,
time="2020-04-28T17:14:29Z" level=debug msg="Filtering disabled container" container=Atlassian-nexus-w3s516rr5pg9lsrb99n95y1za providerName=docker,
time="2020-04-28T17:14:29Z" level=debug msg="Filtering disabled container" providerName=docker container=Atlassian-jira-d36dr5k5xy7r5caglvlq41gj7,
time="2020-04-28T17:14:29Z" level=error msg="service \"Atlassian-traefik\" error: port is missing" providerName=docker container=Atlassian-traefik-pew5s07lp31hq2blq0tmtayw2,
time="2020-04-28T17:14:29Z" level=debug msg="Filtering disabled container" providerName=docker container=Atlassian-bitbucket-nbs14ules2bwltmmrfvip0o4n,
time="2020-04-28T17:14:29Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-0puq530r6nvq8l30virce89jc,
time="2020-04-28T17:14:29Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-lua0b3ko0z8x3g181ur1iivz5,
time="2020-04-28T17:14:29Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-p4ai8plvmiiteynpyvgji4vsq,
time="2020-04-28T17:14:29Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-tsgk21mt4daf1tnfzwyau8oq5,
time="2020-04-28T17:14:29Z" level=debug msg="Filtering disabled container" providerName=docker container=portainer-agent-vkh0xmbpr2u96oopisv94bskx,
time="2020-04-28T17:14:29Z" level=debug msg="Configuration received from provider docker: {\"http\":{},\"tcp\":{},\"udp\":{}}" providerName=docker,
time="2020-04-28T17:14:29Z" level=info msg="Skipping same configuration" providerName=docker,

Thanks @asmall

Unless anybody beats me to it I'll try and work this out with you.

A quick tip is that a label like the below is required for each service.

This one is not useful/may not even parse(?). The service is inherent by using the docker swarm provider and having traefik.enable=true

Thank @cakiwi. I uncommented the first label for the loadbalancer port and commented out the second label and now I get this is in the logs for Traefik.

time="2020-04-29T13:43:14Z" level=error msg="service "Atlassian-traefik" error: port is missing" providerName=docker container=Atlassian-traefik-pew5s07lp31hq2blq0tmtayw2

Hi @asmall

It looks like in your nexus example you have two deploy section, the latter one without the labels is taking precedence.

I didn't spot it by eye only by a docker service inspect and looking at the labels.
docker service inspect test_nexus | jq '.[].Spec.Labels'

@cakiwi!!!!!!!!!! Thank you so much that was my issue! I combined the two deploys and traefik is now seeing all of my containers. Thank you again for your help it is greatly appreciated.

1 Like