In this scenario you can deploy a Docker Swarm cluster.
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
- TCP
- 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
- TCP
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.