-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Swarm Mode + Letsecrypt + KV Store #1176
Comments
Got it working. |
@Berndinox how can I set traefik.toml to swarm container service? |
Here my traefik.toml: logLevel = "WARN"
defaultEntryPoints = ["http", "https"]
[entryPoints]
[entryPoints.http]
address = ":80"
compress = false
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[acme]
email = "admin@DOMAIN"
storage = "acme.json"
entryPoint = "https"
onHostRule = true
onDemand = true
[[acme.domains]]
main = "DOMAIN"
[web]
address = ":8080"
[docker]
domain = "docker.localhost"
watch = true
swarmmode = true
|
So are you succesfully pulling static trefik configs + a shared acme.json from Consul KV, while at the same time having frontends/backends defined from docker swarm? If so perhaps you can assist me w/ this? as I can't seem to get this setup working: |
Can you please share the docker command you use to startup traefik that binds to consul for its static config + shared acme.json, yet gets its frontends/backends from docker swarm? |
I've a working solution, have a look here: https://github.com/Berndinox/compose-v3-collection
This Procedere uploads the toml and acme files into the KV Store (Consul) https://docs.traefik.io/user-guide/kv-config/#store-configuration-in-key-value-store Also the following Part inside the toml is relevant!
|
@Berndinox have you run this against latest version? Storing the config all works fine, and then restarting traefik against that config works, but other docker services simply do not show up in frontends/backends in the UI despite the traefik logs showing things registering as I describe here: #1727 |
This issue is closed. Please open a new issue or discuss this in :
|
What version of Traefik are you using (
traefik version
)?traefik:latest
What is your environment & configuration (arguments, toml...)?
3 Node Swarm Cluster (Docker 1.13 - Swarm Mode)
What did you do?
Would like to store config into the Consul Cluster, cause with a local shared volume i'm not able to scale traefik.
Tried with appending the followong commands to the compose (above):
--consul --consul.endpoint=consul:8500 storeconfig
As descripte here: https://docs.traefik.io/user-guide/kv-config/#store-configuration-in-key-value-store
you have to specify acme.storage & acme.storagefile
So i put the .acme path under acme.storageFile and changed to acme.storage="traefik/acme/account".
What did you expect to see?
Letsencrypt Certificates in the KV Cluster, so that i can scale the traefik service
What did you see instead?
Error here : unknown flag: --acme.storagefile
I'm not able to specify storage file, so i just can point to the .acme file with acme.storage=, but then the storage location for the KV Store is missed.
Is there a straight forward way to scale Traefik on Docker Swarm Mode (+Letsencrypt)
How can i upload the certs?
Thanks BR
The text was updated successfully, but these errors were encountered: