Merge pull request #100 from stepbeekio/feature/multiple-traefik-entrypoints

Added the docker options override configuration for traefik
This commit is contained in:
David Heinemeier Hansson
2023-03-23 14:28:40 +01:00
committed by GitHub
4 changed files with 85 additions and 2 deletions

View File

@@ -10,6 +10,7 @@ class Mrsk::Commands::Traefik < Mrsk::Commands::Base
"--log-opt", "max-size=#{MAX_LOG_SIZE}",
"--publish", port,
"--volume", "/var/run/docker.sock:/var/run/docker.sock",
*docker_options_args,
"traefik",
"--providers.docker",
"--log.level=DEBUG",
@@ -54,6 +55,10 @@ class Mrsk::Commands::Traefik < Mrsk::Commands::Base
end
private
def docker_options_args
optionize(config.traefik["options"] || {})
end
def cmd_option_args
if args = config.traefik["args"]
optionize args, with: "="