Reputation: 142
In Docker I wish to run multiple instances of the same application. These applications all need their own configuration (db name/port) preferably fed via a file but any solution will do really.
I think I should run this in swarm mode. But I can't figure out how to pass different configurations to all the different tasks spawned by the service. Does docker swarm support this use case?
Thank you
Upvotes: 1
Views: 1420
Reputation: 684
I think you are getting it wrong. The replication mode in docker is to bring up more nodes for the same task with a built in loadbalancer. So having different configurations for each instance would deny this use case partially.
You option is to use different service per different configuration.
Upvotes: 1