Skip to content

Commit

Permalink
forward traefik dashboard port too
Browse files Browse the repository at this point in the history
  • Loading branch information
martinklepsch committed Dec 5, 2018
1 parent a1713fa commit 1e122f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/deploy/resources/traefik.toml
Expand Up @@ -31,10 +31,10 @@ main = "cljdoc.org"
[[acme.domains]]
main = "cljdoc.xyz"

# [api] # this should never be enabled in production
[api]
[ping]

[consulCatalog]
prefix = "traefik"
constraints = ["tag==cljdoc"]
watch = true
watch = true
3 changes: 2 additions & 1 deletion ops/nomad.sh
Expand Up @@ -44,12 +44,13 @@ cleanup () {
trap cleanup EXIT ERR INT TERM

# Start SSH port forwarding process for consul (8500) and nomad (4646)
ssh -M -S ${socket} -fNT -L 8500:localhost:8500 -L 4646:localhost:4646 root@${ip}
ssh -M -S ${socket} -fNT -L 8080:localhost:8080 -L 8500:localhost:8500 -L 4646:localhost:4646 root@${ip}

ssh -S ${socket} -O check root@${ip}

echo "You can now open Nomad or Consul:"
echo "Nomad: http://localhost:4646/"
echo "Consul: http://localhost:8500/"
echo "Traefik: http://localhost:8080/"

bash --rcfile <(echo 'PS1="\nnomad> "')

0 comments on commit 1e122f3

Please sign in to comment.