Skip to content
This repository has been archived by the owner on May 3, 2020. It is now read-only.

Dynamic Services? #5

Closed
philippeboyd opened this issue Mar 15, 2018 · 1 comment
Closed

Dynamic Services? #5

philippeboyd opened this issue Mar 15, 2018 · 1 comment

Comments

@philippeboyd
Copy link

Can it be possible to make it dynamic?
For example :

.....
  data:
    image: mongo:3.4
    networks:
      - mongo
    volumes:
      - data:/data/db
    command: mongod --shardsvr --replSet datars --smallfiles --port 27017
    deploy:
      mode: replicated
      replicas: 3
      placement:
        constraints:
          - node.labels.mongo.role == data
@stefanprodan
Copy link
Owner

There is no StatefulSets support in Swarm so you can't get a DNS record per Mongo node like you do in Kubernetes. Even if you would query the tasks records in Swarm DNS to get the containers IP, when you restart a container that IP will change and the cluster will get broken.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants