Question

Multiple Wordpress instances programmatically

Posted February 3, 2015 2.3k 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

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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

Submit an Answer