Intro
swarmgate - a Docker Swarm Multi-tenant Proxy
📋 Project Overview
You might know this issue with docker swarm setups: Either have many people access the same swarm and possibly step on each others feet or have resources underutilized with separate Swarms.
This project aims to alleviate this. It implements a Docker Socket Proxy which is intended to give a tenant specific view onto a Docker Swarm. It exposes all necessary operations to deploy stacks with all features to Docker Swarm as well as management endpoints for volumes, secrets, configs, networks.
Every proxy can be configured with a unique label to give a tenant specific view onto the swarm. This way you can have multiple teams of people collaborate on the same cluster. This is done by filtering all requests on resource labels to check whether the resources are "owned" by the proxy/tenant.
This projects uses Node.js and Express for the server, along with the dockerode (and docker-modem) library to interact with Docker.
Link to project: https://github.com/neuroforgede/swarmgate