34 lines
563 B
HCL
34 lines
563 B
HCL
job "nfs-volume-example" {
|
|
datacenters = ["dc1"]
|
|
type = "service"
|
|
|
|
group "nfs-app" {
|
|
count = 1
|
|
|
|
volume "nfs-shared" {
|
|
type = "host"
|
|
source = "nfs-shared"
|
|
read_only = false
|
|
}
|
|
|
|
task "app" {
|
|
driver = "podman"
|
|
|
|
config {
|
|
image = "alpine:latest"
|
|
args = ["tail", "-f", "/dev/null"]
|
|
}
|
|
|
|
volume_mount {
|
|
volume = "nfs-shared"
|
|
destination = "/shared"
|
|
read_only = false
|
|
}
|
|
|
|
resources {
|
|
cpu = 100
|
|
memory = 64
|
|
}
|
|
}
|
|
}
|
|
} |