You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've installed traefik v2.2 as a standalone application (macOS, with brew).
I've configured 2 providers : docker (to be used as dynamic) and file (just to give access to dashboard).
I have a running docker service (via docker-compose) with the appropriate labels (an official swagger-editor image).
What did you expect to see?
I expect to access to dashboard.
I expect to access to my docker service.
I expect traefik to communicate with docker without be in a docker container.
I don't expect to have to run traefik as a docker container to be able to communicate with docker containers.
What did you see instead?
TL;DR: traefik works well in a full docker environment, but it didn't if is living outside it.
I got access to dashboard
I can't access to my docker service: got a Bad Gateway
In dashboard: #/http/services/traefik-swagger-editor@docker
the Server URL is almost correct: the IP of the container is OK, but the exposed port (there is only one) is not correctly detected (80 wherease it's a 8080 for this image)
So I forced it myself with the label traefik.http.services.<myservice>.loadbalancer.server.port=<correct_port>
Unfortunately it still doesn't work.
Then I disabled the standalone traefik, and use it as a container in my docker.
It works.
Below all the informations needed.
Thanks,
Regards.
Output of traefik version: (What version of Traefik are you using?)
Version: 2.2.0
Codename: cheddar
Go version: go1.14
Built: I don't remember exactly
OS/Arch: darwin/amd64
brew info traefik
traefik: stable 2.2.0 (bottled), HEAD
Modern reverse proxy
https://traefik.io/
/usr/local/Cellar/traefik/2.2.0 (7 files, 74.4MB) *
Poured from bottle on 2020-04-04 at 19:49:12
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/traefik.rb
==> Dependencies
Build: go ✘, go-bindata ✘
==> Options
--HEAD
Install HEAD version
==> Caveats
To have launchd start traefik now and restart at login:
brew services start traefik
Or, if you don't want/need a background service you can just run:
traefik
==> Analytics
install: 290 (30 days), 916 (90 days), 3,503 (365 days)
install-on-request: 287 (30 days), 910 (90 days), 3,491 (365 days)
build-error: 0 (30 days)
What is your environment & configuration (arguments, toml, provider, platform, ...)?
Hi! I'm Træfiker 🤖 the bot in charge of communication regulation.
Thanks for your interest in Traefik!
We dedicate the issue tracker to bug reports and feature requests only. My advanced AI has spotted that your issue might be a configuration problem or relates to something that doesn't look like a bug.
Do you want to request a feature or report a bug?
Bug
What did you do?
I've installed traefik v2.2 as a standalone application (macOS, with brew).
I've configured 2 providers : docker (to be used as dynamic) and file (just to give access to dashboard).
I have a running docker service (via docker-compose) with the appropriate labels (an official swagger-editor image).
What did you expect to see?
I expect to access to dashboard.
I expect to access to my docker service.
I expect traefik to communicate with docker without be in a docker container.
I don't expect to have to run traefik as a docker container to be able to communicate with docker containers.
What did you see instead?
TL;DR: traefik works well in a full docker environment, but it didn't if is living outside it.
I got access to dashboard
I can't access to my docker service: got a Bad Gateway
In dashboard: #/http/services/traefik-swagger-editor@docker
So I forced it myself with the label
traefik.http.services.<myservice>.loadbalancer.server.port=<correct_port>
Unfortunately it still doesn't work.
Then I disabled the standalone traefik, and use it as a container in my docker.
It works.
Below all the informations needed.
Thanks,
Regards.
Output of
traefik version
: (What version of Traefik are you using?)brew info traefik
What is your environment & configuration (arguments, toml, provider, platform, ...)?
macOS Catalina 10.15.4
Docker Desktop 2.2.0.5
Docker 19.03.8
/usr/local/etc/traefik/traefik.toml
/Users/florianlevis/.config/traefik.d/dashboard.toml content below:
docker-compose.yml
If applicable, please paste the log output in DEBUG level (
--log.level=DEBUG
switch)Logs before adding label to force the port:
Logs after adding label to force the port:
The text was updated successfully, but these errors were encountered: