Need help with configuration for Docker Swarm + Traefik #595
-
|
Hello, What did I miss? |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 2 replies
-
|
Post your config. you should add group name to your service(with labels) and it should match with group name in middleware |
Beta Was this translation helpful? Give feedback.
-
|
Here are config files extractions: compose.yml traefik-middleware.yml |
Beta Was this translation helpful? Give feedback.
-
|
post your /etc/sablier/sablier.yml too. |
Beta Was this translation helpful? Give feedback.
-
|
Sorry, I missed it: With trace loglevel instead of info I get this at startup: Provider = docker, not swarm. It seems the config file isn't parsed, no? File attributes in host: |
Beta Was this translation helpful? Give feedback.
-
|
looks like sablier can't read your config file. as a test, give 777 to sablier.yml on host. and then look inside docker for this file, and check permissions |
Beta Was this translation helpful? Give feedback.
-
|
I didn't manage to connect to container with I switched to 777 but it's not better. I may have a syntax problem in my compose file but I don't see it. |
Beta Was this translation helpful? Give feedback.
-
|
you can add configuration with your compose file. i'm running it this way, for example:
|
Beta Was this translation helpful? Give feedback.
-
|
With the command lines in compose file it is a little bit better: containers in group general are starting when needed. |
Beta Was this translation helpful? Give feedback.
-
|
Ok great, I fixed everything by creating middleware labels for each service to scale to 0, each associated to its own group. Thanks for helping @uldiseihenbergs. |
Beta Was this translation helpful? Give feedback.
Ok great, I fixed everything by creating middleware labels for each service to scale to 0, each associated to its own group.
I still don't understand why config file isn't read and what log levels can be set... but it's running.
Thanks for helping @uldiseihenbergs.