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 -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -