I'm new to nomad and I try to move from docker-compose files in which I'm used to mount folders to a relative location of the docker-compose.yml file.
I've trouble understanding how I can reproduce this behavior using nomad.
If I were to do it manually I would do something using the $PWD env var: docker run --rm -it -v $PWD/packs/hello_pack:/app node bash
Unfortunately I can't find any example of a bind mount a relative folder with nomad.
I tried without any luck
task "server" {
driver = "docker"
config {
image= "node:lts-buster-slim"
mount {
type = "bind"
target = "/app"
source = "./"
}
…
}
}
I think this is a convenient feature to have during development phase.
Is there a way to mount a folder relative to the current directory (or something similar)?