-
Hey! I selfhost lot of things for some years using traefik as reverse proxy. But for some reason I can't get work lanraragi with traefik. I can't find any errors, I just get 404 when I try to use through my domain. I use debian 12.6, docker v27.0.2, docker compose 2.28.1, traefik v3.0.3. Can you help me or give me tips to debug, because this driving me crazy? The fun part is that, it worked previously, but then I wanted to use it on my local network (adding ports: 3333:3000) as well, and since then it does not works, even if I remove the ports part from the compose file. Let me know if some more information is needed. I use the following compose file: services:
lanraragi:
image: difegue/lanraragi
container_name: lanraragi
restart: always
ports:
- 3333:3000
environment:
- LRR_UID=${PUID}
- LRR_GID=${PGID}
volumes:
- lanraragi-content:/home/koyomi/lanraragi/content
- lanraragi-database:/home/koyomi/lanraragi/database
- lanraragi-thumb:/home/koyomi/lanraragi/content/thumb
networks:
- traefik-network
labels:
- "traefik.enable=true"
## HTTP Routers
- "traefik.http.routers.lanraragi-rtr.entrypoints=https"
- "traefik.http.routers.lanraragi-rtr.rule=Host(`lrr.$CLOUDFLARE_DOMAINNAME`)"
- "traefik.http.routers.lanraragi-rtr.tls=true"
## Middlewares
- "traefik.http.routers.lanraragi-rtr.middlewares=no-auth-chain@file" # No Authentication
## HTTP Services
- "traefik.http.routers.lanraragi-rtr.service=lanraragi-svc"
- "traefik.http.services.lanraragi-svc.loadbalancer.server.port=3000"
volumes:
lanraragi-content:
driver: local-persist
driver_opts:
mountpoint: ${DOCKER_VOLUMES}/lanraragi/content
lanraragi-database:
driver: local-persist
driver_opts:
mountpoint: ${DOCKER_VOLUMES}/lanraragi/database
lanraragi-thumb:
driver: local-persist
driver_opts:
mountpoint: ${DOCKER_VOLUMES}/lanraragi/thumb
networks:
traefik-network:
external: true For comparison here's the compose file of dokuwiki, which works (and there are 10+ other servicies, which works). services:
dokuwiki:
image: ghcr.io/linuxserver/dokuwiki
container_name: dokuwiki
restart: always
security_opt:
- no-new-privileges:true
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
volumes:
- dokuwiki-data:/config
networks:
- traefik-network
labels:
- "traefik.enable=true"
## HTTP Routers
- "traefik.http.routers.wiki-rtr.entrypoints=https"
- "traefik.http.routers.wiki-rtr.rule=Host(`wiki.$CLOUDFLARE_DOMAINNAME`)"
- "traefik.http.routers.wiki-rtr.tls=true"
## Middlewares
- "traefik.http.routers.wiki-rtr.middlewares=no-auth-chain@file"
## HTTP Services
- "traefik.http.routers.wiki-rtr.service=wiki-svc"
- "traefik.http.services.wiki-svc.loadbalancer.server.port=80"
volumes:
dokuwiki-data:
driver: local-persist
driver_opts:
mountpoint: "${DOCKER_VOLUMES}/dokuwiki"
networks:
traefik-network:
external: true Logs for starting the container:
Traefik log: {
"ClientAddr": "CENSORED",
"ClientHost": "CENSORED",
"ClientPort": "57180",
"ClientUsername": "-",
"DownstreamContentSize": 19,
"DownstreamStatus": 404,
"Duration": 76248,
"GzipRatio": 0,
"OriginContentSize": 0,
"OriginDuration": 0,
"OriginStatus": 0,
"Overhead": 76248,
"RequestAddr": "lrr.MYDOMAIN.COM",
"RequestContentSize": 0,
"RequestCount": 938,
"RequestHost": "lrr.MYDOMAIN.COM",
"RequestMethod": "GET",
"RequestPath": "/",
"RequestPort": "-",
"RequestProtocol": "HTTP/2.0",
"RequestScheme": "https",
"RetryAttempts": 0,
"StartLocal": "2024-06-30T10:51:42.474958773Z",
"StartUTC": "2024-06-30T10:51:42.474958773Z",
"TLSCipher": "TLS_AES_128_GCM_SHA256",
"TLSVersion": "1.3",
"entryPointName": "https",
"level": "info",
"msg": "",
"time": "2024-06-30T10:51:42Z"
}
{
"ClientAddr": "CENSORED",
"ClientHost": "CENSORED",
"ClientPort": "27698",
"ClientUsername": "-",
"DownstreamContentSize": 19,
"DownstreamStatus": 404,
"Duration": 98191,
"GzipRatio": 0,
"OriginContentSize": 0,
"OriginDuration": 0,
"OriginStatus": 0,
"Overhead": 98191,
"RequestAddr": "lrr.MYDOMAIN.COM",
"RequestContentSize": 0,
"RequestCount": 940,
"RequestHost": "lrr.MYDOMAIN.COM",
"RequestMethod": "GET",
"RequestPath": "/favicon.ico",
"RequestPort": "-",
"RequestProtocol": "HTTP/2.0",
"RequestScheme": "https",
"RetryAttempts": 0,
"StartLocal": "2024-06-30T10:51:43.317187085Z",
"StartUTC": "2024-06-30T10:51:43.317187085Z",
"TLSCipher": "TLS_AES_128_GCM_SHA256",
"TLSVersion": "1.3",
"entryPointName": "https",
"level": "info",
"msg": "",
"time": "2024-06-30T10:51:43Z"
} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
No idea I'm afraid, I don't use traefik. |
Beta Was this translation helpful? Give feedback.
-
I've encountered this issue as well. I've found that my container is unhealthy(so traefik won't use it) but I haven't investigated into why its unhealthy yet. |
Beta Was this translation helpful? Give feedback.
Adding
to my docker compose worked, maybe the healthcheck is broken.