my traefik dashboard is working as expected but anytime I attempt to place another container into my swarm, traefik gives me a le cert but also a bad gateway instead of default "it works" page in the case of nginx container. I have added my code for the nginx container below. Again the cert is working but i get a "bad gateway" when trying to load nginx. Im sure someone has come across this beofore. I have dug to google/reddit/traefik docs to no avail.
version: '3.8'
services:
nginx:
image: nginx:latest
networks:
- traefik-public
volumes:
- "~/xxxxxxxx/xxxxxxxx/wp-app:/usr/share/nginx/html:ro"
deploy:
mode: replicated
replicas: 6
labels:
traefik.enable: "true"
traefik.http.services.nginx.loadbalancer.server.port: "8080"
traefik.http.routers.nginx.rule: "Host(`nginx.xxxxxxxxxxxx.com`)"
traefik.http.routers.nginx.entrypoints: "websecure"
traefik.http.routers.nginx.tls.certresolver: "letsencryptresolver"
command: [nginx-debug, '-g', 'daemon off;']
networks:
traefik-public:
external: true