Skip to content
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

file vs inline config #888

Closed
opichon opened this issue Nov 23, 2016 · 5 comments
Closed

file vs inline config #888

opichon opened this issue Nov 23, 2016 · 5 comments

Comments

@opichon
Copy link

opichon commented Nov 23, 2016

The docs mention a [docker] config section in the traefik.yoml configuration file, but the example for running traefik via docker mention similar options on the command line:

--web --docker --docker.domain=...

Are these 2 ways to set the configuration equivalent?

@emilevauge
Copy link
Member

emilevauge commented Nov 24, 2016

Yes. Why are you opening an issue on this? I strongly suggest to join the Traefik Slack channel for this kind of question ;)

@opichon
Copy link
Author

opichon commented Nov 24, 2016

I've tried launching a traefik container via docker-compose without including the command --web --docker ... argument, having these same arguments setup in the traefik.toml config file (which was mounted as a volume). Traefik fails to launch.

To be precise: The container is running, but the logs are empty, and the web ui page loads intermittently.

@emilevauge
Copy link
Member

emilevauge commented Nov 24, 2016

@opichon
Please make an effort when you report an issue on an open source software.

Traefik fails to launch.

Is really not sufficient for us to investigate on this.
We need you config file, your version, your DEBUG logs, etc...

logs are empty

Have you at least tried to launch Traefik in DEBUG?

@opichon
Copy link
Author

opichon commented Nov 24, 2016

logs are empty: that's because the log is empty (after launch). Nothing. Nada. And traefik is running in DEBUG mode.

As I explained: the container is running, but the web ui page loads intermittently.

@opichon
Copy link
Author

opichon commented Nov 24, 2016

Apologies: trawfik was indeed not running in DEBUG mode. However, having set logLevel = "DEBUG" in traefik.toml, the log is definitely not empty.

Treafik is working, in the sense that trying to open one of the urls being proxied does open that url.

However, the web ui is not working: every other time I refresh the page, I get an error message "server unreachable". When the web ui page does display, the providers section is empty.

It looks like the command argument is required, and that the minimum setting is command: --logLevel=DEBUG.

Everything works fine if the web docker and docker.watch=true arguments are omitted. But as per issue #891, if they are present they cause problems with the web ui auth.

@traefik traefik locked and limited conversation to collaborators Sep 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants