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:
- external "bootstrapping" happens on single host.
- 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
Post a Comment