How do I deploy my docker-compose project using Terraform? : <p>I've looked all over and can't find a coherent resource that describes how to do this straightforwardly. I have a project like so:</p>

<pre><code>./
 |-src/
 |--..
 |--Dockerfile
 |-docker-compose.yaml
</code></pre>

<p>A terraform config file like this:</p>

<pre><code>variable "do_token" {}

# Configure the DigitalOcean Provider
provider "digitalocean" {
  token = "${var.do_token}"
}

# Create a web server
resource "digitalocean_droplet" "web" {
  # ...
}
</code></pre>

<p>I want to be able to do something like</p>

<pre><code>provider "digitalocean" {
    ip = &lt;my-ip&gt;
    # docker-compose up ?
}
</code></pre>

<p>My compose file sets up the application architecture properly. I just want a way to deploy that to a given box somewhere on digital ocean (via ip preferably) and the run <code>docker-compose up</code>. How can I do this?</p>
