Merge pull request #85 from clowder/traefik-host-port

Customizable Traefik host port
This commit is contained in:
David Heinemeier Hansson
2023-03-08 17:06:51 +00:00
committed by GitHub
3 changed files with 19 additions and 1 deletions

View File

@@ -12,6 +12,11 @@ class CommandsTraefikTest < ActiveSupport::TestCase
assert_equal \
"docker run --name traefik --detach --restart unless-stopped --log-opt max-size=10m --publish 80:80 --volume /var/run/docker.sock:/var/run/docker.sock traefik --providers.docker --log.level=DEBUG --accesslog.format json --metrics.prometheus.buckets 0.1,0.3,1.2,5.0",
new_command.run.join(" ")
@config[:traefik]["host_port"] = "8080"
assert_equal \
"docker run --name traefik --detach --restart unless-stopped --log-opt max-size=10m --publish 8080:80 --volume /var/run/docker.sock:/var/run/docker.sock traefik --providers.docker --log.level=DEBUG --accesslog.format json --metrics.prometheus.buckets 0.1,0.3,1.2,5.0",
new_command.run.join(" ")
end
test "traefik start" do