New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuration Traefik Dashboard not working without insecure #5457
Comments
duplicate of #5363 |
I dont think this is a duplicate. I just followed the configuration example posted in the linked issue and changed my docker-compose config accordingly. The only change for now is that traefik seems to have stopped to continuously call itself. The dashboard is still not working unless I set the option insecure ( Is there an option to dump the currently running config of traefik? That way it would be possible to compare the two configurations directly. version: '2'
services:
traefik:
image: "traefik:latest"
restart: always
command:
- "--log.level=DEBUG"
- "--api=true"
- "--api.dashboard=true"
- "--ping=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.traefik.address=:8080"
labels:
- "traefik.enable=true"
- "traefik.http.routers.dashboard.entryPoints=traefik"
#- "traefik.http.routers.dashboard.rule=PathPrefix(`/dashboard`) || PathPrefix(`/api`)"
- "traefik.http.routers.dashboard.rule=Host(`traefik.localhost`) && PathPrefix(`/dashboard`)"
- "treafik.http.routers.dashboard.service=api@internal"
#- "traefik.http.routers.dashboard.middlewares=dashboard-auth"
#- "traefik.http.middlewares.dashboard-auth.basicauth.users=test:$$apr1$$H6uskkkW$$IgXLP6ewTrSuBkTrqE8wj/"
ports:
- "80:80"
- "8088:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
Could you join our community forum https://community.containo.us/, thanks. |
For anyone else wondering about the correct syntax and finding this issue:
|
it doesn't work for me. could you help me? docker stack deploy -c <(docker-compose -f docker-swarm.yml config) traefik version: "3.7"
services:
traefik:
image: traefik:v2.0.0
ports:
- 80:80
- 443:443
# - 8080
networks:
- net # traefik_net
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ../../dev-ops-repo/traefik/acme:/etc/traefik/acme
# environment:
# - TZ=${TIME_ZONE:-Asia/Shanghai}
command:
# - "--log.level=DEBUG"
- "--api=true"
- "--api.dashboard=true"
- "--providers.docker=true"
- "--providers.docker.swarmmode=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- "--certificatesresolvers.letsencrypt.acme.httpchallenge=true"
- "--certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=web"
- "--certificatesresolvers.letsencrypt.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
- "--certificatesresolvers.letsencrypt.acme.email=${TRAEFIK_ACME_EMAIL:-traefik@traefik.com}"
# - "--certificatesresolvers.letsencrypt.acme.storage=/etc/traefik/acme/acme-v2.json"
- "--certificatesresolvers.letsencrypt.acme.storage=/etc/traefik/acme/acme-staging-v2.json"
deploy:
mode: global
placement:
constraints:
- node.role == manager
update_config:
parallelism: 1
delay: 10s
restart_policy:
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik_net"
# - "traefik.http.services.dashboard.loadbalancer.server.port=8080"
- "traefik.http.routers.traefik.service=api@internal"
- "traefik.http.routers.traefik.rule=Host(`traefik.${SERVER_DOMAIN:-localhost}`)"
- "traefik.http.routers.traefik.entrypoints=web"
- "traefik.http.routers.traefik.middlewares=redirecttls"
- "traefik.http.middlewares.redirecttls.redirectscheme.scheme=https"
- "traefik.http.routers.traefiktls.service=api@internal"
- "traefik.http.routers.traefiktls.rule=Host(`traefik.${SERVER_DOMAIN:-localhost}`)"
- "traefik.http.routers.traefiktls.entrypoints=websecure"
- "traefik.http.routers.traefiktls.tls.certresolver=letsencrypt"
- "traefik.http.routers.traefiktls.middlewares=auth"
- "traefik.http.middlewares.auth.basicauth.users=${TRAEFIK_AUTH_BASIC}"
networks:
# docker stack deploy -c <(docker-compose -f docker-swarm.yml config) traefik
# Creating network traefik_net
net:
driver: overlay
attachable: true |
I can't access this website in chinese. |
Hello @v7lin, when you say |
Hi @v7lin in order to improve our community forum, we would like to understand better the issue you face with the forum:
|
i use chrome visit https://community.containo.us/. all request was passed, but https://sjc3.discourse-cdn.com/standard11/stylesheets/desktop_15_cc19ae8ada0359ea735ebfb48a8fd4aff3afdcf9.css?__ws=community.containo.us is not accessed. |
@v7lin thanks for the feedback, we'll try our best to make it available in your area to help you. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@v7lin , it looks like the issue is related to Discourse itself: https://meta.discourse.org/t/difficulty-loading-meta-from-china-due-to-cdn-being-blocked/95923/9. However we are not sure about what is causing the issue as the only tools we have to try from Europe reports everything should work: Can you share with us some screenshots of chrome developer console so we can see the kind of error and decide which direction to take please? |
Do you want to request a feature or report a bug?
Bug
Did you try using a 1.7.x configuration for the version 2.0?
What did you do?
I am following the configuration examples of the treafik 2.0 docs to setup a basic example of traefik. Currently I am unable to get the dashboard to work with the included examples as it seems to get stuck in a loop (see logs at end). It is working when I use the insecure flag. The configuration for the included container "web" is working without any issues.
I exposed the port 8080 to 8088 on my machine. The same thing happens if I try to access the endpoint via curl from inside the container.
What did you expect to see?
Access to dashboard over http://localhost:8088/dashboard/
What did you see instead?
Timeout after waiting for ~1min.
Output of
traefik version
: (What version of Traefik are you using?)What is your environment & configuration (arguments, toml, provider, platform, ...)?
I am running traefik via docker-compose.
If applicable, please paste the log output in DEBUG level (
--log.level=DEBUG
switch)If I try to access the url http://localhost:8088/dashboard/ the following lines are spammed in the log.
The text was updated successfully, but these errors were encountered: