Home > other >  How great god please docker stack volumes configuration to share the same directory
How great god please docker stack volumes configuration to share the same directory

Time:09-18

The following is my docker - compose. Yml

This configuration of the volume, but this need I in docker swarm of every node above the need to create/root/Java directory and throw the jar package, or it will mount will fail, and finally all replicas will exist in only/root/Java directory node created above container
Feel it's not science

Inquire how great god configuration can only need to cast jars on the yml node, then all replicas can be mounted to the container

CodePudding user response:

1, will your Java directory packaging directly to the mirror, not in the configuration file mount
2, install MooseFS Shared file system or the GFS, the Java directory in the Shared directory, so you upload once every server can access to the Java directory
  • Related