How to publish docker container?

Hello, I got some trouble when trying to publish docker container services, it says "Hub is connecting to your services"

This my docker-compose.yml :

version: '3.8'
services:
  traefik-env:
    container_name: traefik
    image: traefik:v2.9
    command:
      - --experimental.hub=true
      - --hub.tls.insecure=true
      - --metrics.prometheus.addrouterslabels=true
      - --api.insecure=true
      - --providers.docker.watch
      - --providers.docker=true
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - ./certs:/certs
    ports:
      - "8087:80"
      - "8888:8080"
      - "9901:9901"
      - "9900:9900"
    networks:
      zabbix:
        ipv4_address: 172.11.0.38
  traefik-agent-env:
    container_name: traefik-hub-agent
    pull_policy: always
    restart: "on-failure"
    image: ghcr.io/traefik/hub-agent-traefik:v1.0.0
    command:
      - run
      - --hub.token=61ffc4f2-071d-45f1-a197-be77a3beca40
      - --auth-server.advertise-url=http://172.11.0.39
      - --traefik.host=172.11.0.38
      - --traefik.tls.insecure=true
volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - ./certs:/certs
    depends_on:
      - traefik-env
    ports:
      - "8989:80"
    networks:
      zabbix:
        ipv4_address: 172.11.0.39
  traefik-whoami:
    container_name: traefik-whoami
    image: traefik/whoami
    ports:
      - "7070:80"
    networks:
      zabbix:
        ipv4_address: 172.11.0.40
networks:
  zabbix:
    external: true

any help?

Hello @ahmadwasesa,

Thank you for your interest in Traefik Hub.

To help you in a relevant way, could you:

  • Give more information about the troubles you are facing?
  • Provide your Traefik and Hub agent logs?

As you've provided your Hub Agent token, I encourage you to delete your current agent and generate a new one to get a new token.

how to find the logs? thanks for reply, i got succeed when using kubernetes

Hello @ahmadwasesa,

how to find the logs?

You can run the docker-compose command: docker-compose logs.

Here the hub agent logs

{"level":"info","version":"v1.0.0","module":"github.com/traefik/hub-agent-traefik","commit":"e32cae4","built":"2022-10-26_09:54:23AM","go_version":"go1.19.2","os":"linux","arch":"amd64","time":1670985529}
{"level":"info","addr":"http://hub-agent","time":1670985538,"message":"Using Agent reachable address"}
{"level":"info","addr":"0.0.0.0:80","time":1670985538,"message":"Starting auth server"}
{"level":"error","workspace_id":"637357de4edca5a12e0b5fb6","cluster_id":"bc029fb5-01f0-4886-b086-2fd0682e2202","edge_ingress_id":"6399375c5812d39f6b07a47d","service_name":"zabbix-web-ui~zabbix-web-ui","service_network":"","error":": no IP address","time":1670985599,"message":"unable to get IP"}
{"level":"error","workspace_id":"637357de4edca5a12e0b5fb6","cluster_id":"bc029fb5-01f0-4886-b086-2fd0682e2202","edge_ingress_id":"6399375c5812d39f6b07a47d","service_name":"zabbix-web-ui~zabbix-web-ui","service_network":"","error":": no IP address","time":1670985658,"message":"unable to get IP"}

Hello @ahmadwasesa,

Thank you for the logs.
We are currently facing an issue with Docker publishing the services.

The team is working on it. We'll keep you updated as soon as the situation is fixed.

2 Likes

Hey @ahmadwasesa,

A fix has just been deployed.
Could you give it a try by deploying a new service?

Do not hesitate to come back to us if there is still a problem.

1 Like

Thanks! it works now

1 Like

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