marianod92 / docker-swarm-network-attacher

Attach services to specified networks automatically

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker swarm network attacher

Description

docker-swarm-network-attacher aims to solve the problem of sharing a network between unrelated services. With this service we can generate "point-to-point" networks and avoid this problem.

How to deploy it

Deploy dsna service

dsna.stack.yml

version: "3.9"

services:
  service:
    image: bcascio/docker-swarm-network-attacher:<VERSION>
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    deploy:
      replicas: 1
      resources:
        limits:
          memory: 20M
          cpus: '0.05'
        reservations:
          memory: 10M
          cpus: '0.05'

Run the deployment

docker stack deploy -c dsna.stack.yml dsna

Use Cases

  • Cluster Gateway/Ingress
  • External services that require communication with other isolated services on different networks (e.g. prometheus)

Examples

See examples folder to see the use cases on action

How to contribute

Run development

make dev

About

Attach services to specified networks automatically


Languages

Language:Go 75.0%Language:Makefile 15.2%Language:Dockerfile 9.8%