I've managed to deploy a traefik with swarm, see this post in the forum.
However, I'm facing an issue: The services deployed in swarm are not correctly being seen by traefik.
This is the services I'm deploying:
version: "3.5" networks: web: external: name: web internal: name: internal driver: overlay services: mysql: image: mysql:5.7 environment: MYSQL_ROOT_PASSWORD: mypass networks: - internal labels: - traefik.enable=false adminer: image: adminer:4.6.3-standalone deploy: labels: - traefik.http.routers.adminer.rule=Host(`dbadmin.mywebsite.com`) - traefik.http.routers.adminer.tls=true - traefik.http.routers.adminer.tls.certresolver=lets-encrypt - traefik.http.services.adminer.loadbalancer.server.port = 8080 networks: - internal - web depends_on: - mysql
I'm confident that both services have been correctly deployed, see services:
root@d2e-server-1:~# docker service ls ID NAME MODE REPLICAS IMAGE PORTS hm71k8yp791d d2e_adminer replicated 1/1 adminer:4.6.3-standalone 1fwzg0ud332y d2e_mysql replicated 1/1 mysql:5.7 tl1vin36sl74 d2e_traefik replicated 1/1 traefik:v2.2 *:80->80/tcp, *:443->443/tcp
however, traefik does not detect them. The
This is the output of the dashboard in swarm:
When it was deployed with compose (only containers, no services) I had the following dashboard:
What am I doing wrong?