see the link below about deploying a Composer REST server for a deployed business network, and how to configure it so that it can connect to the running Fabric environment. There's also an example at the bottom showing how you can use Docker to create a persistent (and secured) REST server using Docker. No reason why you can't run your REST server / Fabric in the cloud.