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

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

java - How to provide dependency injections in Eclipse RCP 3.x? -