wauterw
By:
wauterw

Multiple Wordpress instances programmatically

February 3, 2015 956 views

I would like to host multiple Wordpress sites on a single instance. Preferably using Docker containers. I will create servers/droplets using the API from my own website and I'm looking for a way to create these docker containers programmatically using an API. The idea would be that my user creates a Wordpress instance by clicking a button on my site. However, I don't see an API that can do this? Is there another way to achieve this?

2 comments
  • While there is no direct API built into your Droplet's OS to allow for this there are third party tools that can allow you to perform some functions remotely.

    Internally we use fabric to remotely build our Application images on droplets without directly logging into them. It may provide a solution that you can build on.

  • Thanks for this valuable information Ryan.

    The idea would be that a user from my website can click a button and then a remote script is executed. However I don't see immediately how I could the button on my website (running somewhere else) to the Fabric agent running on my droplet where the wordpress site should be instantiated.

    So I would need to be able to execute sth like the below from my website (through javascript or similar).

    click_button {
       call_fabric_script_X_on_droplet_Y
    }
    
    edited by asb
1 Answer

This question was answered by @ryanpq:

While there is no direct API built into your Droplet's OS to allow for this there are third party tools that can allow you to perform some functions remotely.

Internally we use fabric to remotely build our Application images on droplets without directly logging into them. It may provide a solution that you can build on.

View the original comment

Have another answer? Share your knowledge.