docker-compose scale service with independent volumes -


i'm trying write compose-file using service (node) i'd scale 3 containers. service has volume bond local system persistence, i'd different tasks having different binding on system ? tried use template {{.task.slot}} inside docker-compose.yml shown below, cannot figured out out make work...

version: '3.2' services:      node:         build:             context: ./node         volumes:             - nodevol:/data         command: ["myapp"]  volumes:     nodevol:         external:             name: './persistence/{{.task.slot}}' 

any idea of went wrong ?


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -