Gluetun+traefik

Hi,

I'am new to traefik and looking for some help in getting my qbit instance up and running

qbit.yml

 qbittorrent:
    image: cr.hotio.dev/hotio/qbittorrent:legacy
    container_name: qbittorrent
    restart: unless-stopped
    logging:
      driver: json-file
      options:
        max-file: ${DOCKERLOGGING_MAXFILE}
        max-size: ${DOCKERLOGGING_MAXSIZE}
    network_mode: 'service:gluetuntorrent'
    environment:
      - PUID=${PUID}
      - PGID=${GUID}
      - UMASK=${UMASK}
      - TZ=${TZ}
    volumes:
      - ${BASE_DOCKER_DATA_PATH}/qbittorrent/config:/config
      - ${BASE_DATA_QBIT_PATH}:/qbit
      - ${BASE_DATA_MERGED_PATH}:/merged
    sysctls:
      - net.ipv4.conf.all.src_valid_mark=1
      - net.ipv6.conf.all.disable_ipv6=1    
    healthcheck:
      test: curl --fail -s http://localhost:8080/ || exit 1
      interval: 1m30s
      timeout: 10s
      retries: 3

traefik.yml

  traefik:
    container_name: traefik
    image: traefik:alpine
    restart: always
    networks:
      - skynet
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Copenhagen   
    ports:
      - 80:80
      - 443:443  
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - /home/xxx/docker/data/traefik/config/traefik.toml:/etc/traefik/traefik.toml
      - /home/xxx/docker/data/traefik/config/acme.json:/acme.json     

networks:
  skynet:
    external: true

traefik.toml

defaultEntryPoints = ["http", "https"]

[entryPoints]
  [entryPoints.http]
  address = ":80"
    [entryPoints.http.redirect]
    entryPoint = "https"
  [entryPoints.https]
  address = ":443"
  [entryPoints.https.tls]

[retry]

[api]
  dashboard = true

[docker]
endpoint = "unix:///var/run/docker.sock"
domain = "xxx"
watch = true
exposedbydefault = false
defaultrule = "Host(`{{ index .Labels \"com.docker.compose.service\" }}.xxx`)"

[acme]
email = "xxxxxx@gmail.com"
storage = "acme.json"
entryPoint = "https"
OnHostRule = true
  [acme.httpChallenge]
  entryPoint = "http"

It seems you got a full config already. You write gluetun in the title and qbit in the text. What’s the issue???

Hi,

I can't access my qbit instance if I add

    labels:
      - "traefik.enable=true"
      - "traefik.port=8080"
      - "traefik.frontend.rule=Host:qbit.cloudnull.duckdns.org"

How should anyone diagnose your issue if you don’t explain what is not working? Connection refused, status code or error message???

The issue is probably the network_mode and your .rule looks strange.

Compare to simple Traefik example.

Hi,
I have fixed it :slight_smile: