Dockerising and connecting between ws02 api manger and identity server as keymanager

I would like to dockerise api manager and identity server as keymanager and communicate between them. What are the steps to follow for this. How these should be made? Two separate docker images or using a docker compose and setting this up?

Source: StackOverflow