Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 1.29 KB

SWARM.md

File metadata and controls

22 lines (15 loc) · 1.29 KB

Deploy a Docker Swarm cluster

In this scenario you can deploy a Docker Swarm cluster.

Example

Create a deployment file using as a starting point one the docker-swarm-<Iaas>.yml files located at the examples directory:

vi path/to/deployment.yml

Note that the examples requires you to open some ports, so you will need to:

  • Create a security group (or the equivalent) named bosh with the following ports opened:
    • TCP 22, 4222, 6868, 25250, 25555, 25777 to enable BOSH to communicate with the agents
    • UDP 53 to enable using the BOSH DNS
  • Create a security group (or the equivalent) named docker-swarm (or the name of your deployment) with the following ports opened:
    • TCP 2375 for Docker Swarm API

Note also that the example uses a static list of IP addresses as the Discovery backend. For a production environment, it is recommended to use Consul, etcd or Zookeeper for Discovery backend and aHighly Availability.