Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using weaveworks/net-plugin in swarm mode #146

Open
aaami1ster opened this issue Jan 2, 2019 · 1 comment
Open

using weaveworks/net-plugin in swarm mode #146

aaami1ster opened this issue Jan 2, 2019 · 1 comment

Comments

@aaami1ster
Copy link

I am using docker in swarm mode. I use weaveworks/net-plugin and enable multicast as follows
I did the following step to deply my service in swarm mode with cote and weaveworks/net-plugin.

  1. step one: i run the following commands in each node
docker plugin install weaveworks/net-plugin:latest_release &&
docker plugin disable weaveworks/net-plugin:latest_release && 
docker plugin set weaveworks/net-plugin:latest_release WEAVE_MULTICAST=1 &&
docker plugin enable weaveworks/net-plugin:latest_release
  1. step two: I ran my compose file this my file
version: '3'

networks:
  cote:
    # driver: "overlay" 
    driver: "weaveworks/net-plugin:latest_release"
services:
  api-service:
    image: aaami1ster/taxi:base
    deploy:
      replicas: 1
      restart_policy:
        condition: on-failure
    environment:
      - NODE_ENV=production
      - TZ=Africa/Cairo
    networks:
      - cote
    command: node api-service/bin/www
    ports:
      - "3100:3100"
my-service:
    image: aaami1ster/taxi:base
    deploy:
      replicas: 1
      restart_policy:
        condition: on-failure
    environment:
      - NODE_ENV=production
      - TZ=Africa/Cairo
    networks:
      - cote
    command: node my-service/app.js

I enable multicast, but still not work. what am I missing?????

@drubin
Copy link
Contributor

drubin commented Mar 5, 2019

Have you tried to include

driver_opts:
    WEAVE_MULTICAST: 1

https://docs.docker.com/compose/compose-file/#network-configuration-reference

It might work to explicitly set the driver opts params on the stack.

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

No branches or pull requests

3 participants