Using and accessing Portworx on Nomad
Portworx volumes can be easily accessed through the Nomad docker
driver by referencing the pxd
volume driver.
...
task "mysql-server" {
driver = "docker"
config {
image = "mysql/mysql-server:8.0"
port_map {
db = 3306
}
volumes = [
"name=mysql,size=10,repl=3/:/var/lib/mysql",
]
volume_driver = "pxd"
}
...
A complete example for launching MySQL can be found here
Last edited: Wednesday, Apr 8, 2020
Questions? Visit the Portworx forum.