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.
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
- Cluster Gateway/Ingress
- External services that require communication with other isolated services on different networks (e.g. prometheus)
See examples
folder to see the use cases on action
Run development
make dev