Zeldri
September 21, 2019, 3:02pm
1
Hi,
I'm totally new to traefik, so I watched lot of video about it, but sadly since the 2.0 is recent there is not a ton of tutorial, I read the docs multiple times, and I admit that i'm a little lost with the 1.X and the 2.0
I'm trying to setup a deluge or rutorrent using traefik but I can't get it to work, When I tried to access to http:// 192.168.1.40 /deluge or /rutorrent I get a No Such Resource, And the server try to redirect the request when I try to access the url
Docker-compose : https://pastebin.com/2a7YnZmB
traefik.toml : https://pastebin.com/7v3TaMAj
Zeldri
September 21, 2019, 3:04pm
2
And the output when I'm trying to access 192.168.1.40 /rutorrent
https://pastebin.com/vH7WWMRH
ldez
September 21, 2019, 4:37pm
3
Hello,
I don't know what exactly how works rutorrent and deluge but apossible configuration is:
version: '3.5'
services:
traefik:
container_name: traefik
image: traefik:v2.0.0
command:
- "--log.level=DEBUG"
- "--api"
- "--providers.docker=true"
- "--entrypoints.web.address=:80"
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
labels:
- "traefik.http.routers.traefik.rule=Host(`traefik.docker.localhost`)"
- "traefik.http.routers.traefik.service=api@internal"
- "traefik.http.routers.traefik.entrypoints=web"
deluge:
container_name: deluge
image: linuxserver/deluge
environment:
- PUID=0
- PGID=0
- TZ=Europe/Paris
volumes:
- /opt/deluge/config:/config
- /opt/deluge/downloads:/downloads
labels:
- "traefik.http.routers.deluge.rule=Host(`deluge.docker.localhost`)"
# - "traefik.http.routers.deluge.rule=Path(`/deluge`)"
- "traefik.http.routers.deluge.entrypoints=web"
- "traefik.http.services.deluge.loadbalancer.server.port=8112"
rutorrent:
image: linuxserver/rutorrent
container_name: rutorrent
environment:
- PUID=1000
- PGID=1000
volumes:
- /apps/rutorrent/config:/config
- /apps/rutorrent/downloads:/downloads
labels:
- "traefik.http.routers.rutorrent.rule=Host(`rutorrent.docker.localhost`)"
# - "traefik.http.routers.rutorrent.rule=Path(`/rutorrent`)"
- "traefik.http.routers.rutorrent.entrypoints=web"
- "traefik.http.services.rutorrent.loadbalancer.server.port=80"
With this configuration you access to your services on:
It's just a testing configuration you have to use real domain if you want (FYI Traefik is not a DNS server) or replace the Host
rules by Path
rules
Zeldri
September 23, 2019, 9:12pm
4
WOW, thx that's actually working I don't know what I did wrong tho, but well I'll investigate. Thx a lot, need to add https now