Merge pull request #757 from cr0hn/patch-1

Update Traefik README.md
This commit is contained in:
Raúl Sánchez 2018-03-26 11:30:46 +02:00 committed by GitHub
commit f4fa4de0ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,4 +102,25 @@ More info [rancher-traefik](https://github.com/rawmind0/rancher-traefik)
Note: To access the services, you need to create A or CNAMES dns entries for every one.
### Usage examples
#### Setup Traefik for a custom domain
You must set these labels for the service your want to expose:
- traefik.port = 8080
- traefik.acme = true
- traefik.frontend.rule = Host:MyCustoDomain.com
- traefik.enable = true
### F.A.Q
#### Q: Traefik doesn't expose my service
Depending of de Traefik configuration we can diffenciate two cases:
- If you configured Traefik with label *rancher_healthcheck=true* -> ensure your service has a healthcheck
- If you configured Traefik without healthcheck, then check the Traefik log. Some times Traefik fails when try to load an invalid config and, before that, doesn't load new services -> restart Traefik should fix that
### References
[traefik rancher backend]: https://docs.traefik.io/configuration/backends/rancher/#labels-overriding-default-behaviour