I'm trying to deploy a Docker Stack over my Swarm consisting of a manager node and a worker node, using compose yaml file.
I'm trying to run 2 services (Cardano, Nem). Cardano is to be ran on worker node (machine having IP 10.218.77.99), as given in constraint. Nem is to be ran on the manager node.
The issue I'm facing is the volume mapping for Cardano does not work and the service doesn't run. It gives error "invalid mount config for type.."
While Nem service works fine as it is running in manager node and the volume path is easily accessible.
Is my format wrong for specifying the Disk path of the worker node? Or will the stack that's running on manager node not be able to retrieve container logs of worker node?
Below is my yaml file.
version: "3.5"
services:
Cardano:
image: coin.azurecr.io/coin-console
deploy:
replicas: 2
placement:
constraints:
- node.labels.machine==10.218.77.99
command: ["BlockTime", "Cardano"]
volumes:
- /COINIANPDDisk/blocktime/cardano/logs:/logs
Nem:
image: coin.azurecr.io/coin-console
deploy:
replicas: 2
command: ["BlockTime", "Nem"]
volumes:
- /COINIANPDDisk1/blocktime/Nem/logs:/logs
Appreciate your help.