Swarm Management is an executable python application, installed with pip. The application makes it easy to manage a Docker Swarm by configuring a single *.yml file describing which stacks to deploy, and which networks, configs or secrets to create.
- Install SwarmManagement with pip:
- pip install SwarmManagement
- Create a
swarm-management.yml
file describing all properties of the swarm.- The
swarm-management.yml
file contains following properties:- stacks: [ [
<compose_file>
,<stack_name>
] ] - networks: [ [
<network_name>
, true/false => encrypted (true) / non-encrypted (false)] ] - configs: [ [
<config_file>
,<config_name>
] ] - secrets: [ [
<secret_file>
,<secret_name>
] ] - env_file: path_to/*.env
- stacks: [ [
- The
- Start Swarm
- -> SwarmManagement start
- SwarmManagement uses the
swarm-management.yml
file by default to configure the swarm. - Stop the swarm with:
- -> SwarmManagement stop
- Additional Info is found by asking SwarmManagement:
- -> SwarmManagement -help
Please have a look at an example of use here:
- pip install --no-cache-dir --upgrade SwarmManagement
- The pip package may be located at:
- Configure setup.py with new version.
- Build: python setup.py bdist_wheel
- Publish: twine upload dist/*