<p>If you don't want/need platform-specific integrations and transforming your services to a cloud I guess <a href="https://cloud.google.com/compute" rel="nofollow noreferrer">GCP Compute Engine</a> is for you -- it's like a usual virtual machine that you can start, SSH to it and have all privileges to install and run software the same way you did it on your dev machine.</p>

CC BY-SA 4.0
2021-02-07T12:21:06.017Z
2021-02-07T12:21:06.017Z
Nakilon
<p>If you want to avoid Kubernetes, then the simplest of the <a href="https://cloud.google.com/compute/docs/containers" rel="nofollow noreferrer">GCP options for a docker container</a> is probably their Container-optimized VM images?</p>
<p>That lets you put the parameters to your <code>docker run ...</code> command in the VM config as per <a href="https://cloud.google.com/compute/docs/containers/deploying-containers#gcloud" rel="nofollow noreferrer">https://cloud.google.com/compute/docs/containers/deploying-containers#gcloud</a></p>
<p>This assumes you are able to publish your image to a repo that is accessible to your GCP compute VMs.</p>

CC BY-SA 4.0
2021-02-08T14:44:44.167Z
2021-02-08T14:44:44.167Z
Chris F Carroll
<p>I don't know about Google Cloud but <strong>yes on Digital Ocean</strong>, I do it all the time! Just make sure you have <a href="https://docs.docker.com/compose/install" rel="nofollow noreferrer">Docker Compose installed</a> on the droplet and then run the commands the same as you do locally.</p>

CC BY-SA 4.0
2023-09-22T15:35:57.340Z
Why was this downvoted.  I'm asking as it fits my use case perfectly so keen to understand why it's not considered a good answer.
Auspice
CC BY-SA 4.0
2023-09-23T10:23:54.820Z
@Auspice I would like to know that myself! I think it's a perfectly valid answer, it could have just been someone being spiteful. I recently started a new job and my new company also uses docker-compose on their servers, although it's not Digital Ocean.
jgphilpott
CC BY-SA 4.0
2023-10-11T12:51:03.457Z
Thanks Jacob (sorry couldn't insert your @name.  Actually since I posted my comment I have made progress doing exactly this.  In fact on Digital Ocean there is a specific Droplet Template which comes with Docker ready installed which made it very easy, so not only is this a valid answer, but it's the one I used.
Auspice
CC BY-SA 4.0
2023-10-11T14:00:41.977Z
That's great @Auspice glad I was able to help! I've also updated my name so it should be taggable now, thanks for letting me know!
jgphilpott
CC BY-SA 4.0
2021-03-16T15:03:15.553Z
2021-03-16T15:03:15.553Z
jgphilpott
<p>I have a spring boot application, angular front end app, couchbase, and redis. They are all defined in a docker compose yaml file. I can make the application up and running locally. Is there a way to use docker compose tools/commands to do the same in google cloud or digital ocean?</p>

<docker><docker-compose><google-cloud-platform>
Can I use docker compose to run application container and its dependencies on google cloud or digital ocean, the same as locally?
user3377708
# Can I use docker compose to run application container and its dependencies on google cloud or digital ocean, the same as locally?

(Asked by: username_0 on 2021-02-05)

I have a spring boot application, angular front end app, couchbase, and redis. They are all defined in a docker compose yaml file. I can make the application up and running locally. Is there a way to use docker compose tools/commands to do the same in google cloud or digital ocean?

**Tags:** docker, docker-compose, google-cloud-platform


---

## 3 answers

### Answer by username_1 on 2021-02-07. Score: 2 | Accepted answer

If you don't want/need platform-specific integrations and transforming your services to a cloud I guess [GCP Compute Engine](https://cloud.google.com/compute) is for you -- it's like a usual virtual machine that you can start, SSH to it and have all privileges to install and run software the same way you did it on your dev machine.


---

### Answer by username_2 on 2021-02-08. Score: 0

If you want to avoid Kubernetes, then the simplest of the [GCP options for a docker container](https://cloud.google.com/compute/docs/containers) is probably their Container-optimized VM images?

That lets you put the parameters to your `docker run ...` command in the VM config as per <https://cloud.google.com/compute/docs/containers/deploying-containers#gcloud>

This assumes you are able to publish your image to a repo that is accessible to your GCP compute VMs.


---

### Answer by username_3 on 2021-03-16. Score: 0

I don't know about Google Cloud but **yes on Digital Ocean**, I do it all the time! Just make sure you have [Docker Compose installed](https://docs.docker.com/compose/install) on the droplet and then run the commands the same as you do locally.

> **Comments:**
> **username_4**: Why was this downvoted.  I'm asking as it fits my use case perfectly so keen to understand why it's not considered a good answer.  
> **username_3**: @username_4 I would like to know that myself! I think it's a perfectly valid answer, it could have just been someone being spiteful. I recently started a new job and my new company also uses docker-compose on their servers, although it's not Digital Ocean.  
> **username_4**: Thanks Jacob (sorry couldn't insert your @name.  Actually since I posted my comment I have made progress doing exactly this.  In fact on Digital Ocean there is a specific Droplet Template which comes with Docker ready installed which made it very easy, so not only is this a valid answer, but it's the one I used.  
> **username_3**: That's great @username_4 glad I was able to help! I've also updated my name so it should be taggable now, thanks for letting me know!  

---

