diff --git a/Makefile b/Makefile index 2194892..e4a97fe 100644 --- a/Makefile +++ b/Makefile @@ -93,7 +93,7 @@ mqtt-logs: nomad-start: @echo "Starting Nomad..." @mkdir -p nomad-data - @sudo nomad agent -dev -config=./config/nomad/nomad.hcl -data-dir=$(PWD)/nomad-data + @sudo nomad agent -config=./config/nomad/nomad.hcl -data-dir=$(PWD)/nomad-data @sleep 2 @echo "Nomad started at http://localhost:4646" diff --git a/config/nomad/nomad.hcl b/config/nomad/nomad.hcl index e88365c..54be180 100644 --- a/config/nomad/nomad.hcl +++ b/config/nomad/nomad.hcl @@ -51,6 +51,13 @@ addresses { serf = "127.0.0.1" } +# Advertise addresses (required by Nomad) +advertise { + http = "127.0.0.1:4646" + rpc = "127.0.0.1:4647" + serf = "127.0.0.1:4648" +} + # Ports ports { http = 4646