Using a single docker swarm node as an external bootstrap -


i'm creating docker swarm run in "global service" mode (i.e. single service run on each node). however, want bootstrap database 1 of nodes.

is there specific way should set configuration can set docker image that:

  1. external "bootstrapping" happens on single host.
  2. but service runs on of them?

would solution create 2 separate services same image? first 1 has --replica of 1 , bootstrapping, , global service runs actual service?

you can run database simple container instead of using swarm service. sure both applications running on same network (https://docs.docker.com/engine/swarm/networking/).


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -