In this scenario you can deploy a Service Broker for your Cloud Foundry deployment that will use Docker containers for your services.
See Docker Service Broker for Cloud Foundry for more details.
Create a deployment file using as a starting point one the docker-broker-<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-broker
(or the name of your deployment) with the following ports opened:- All TCP/UDP ports from your Cloud Foundry deployment
Refer to the Containers Service Broker for Cloud Foundry repository for details about how to configure the service broker.