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
Post a Comment