<p>Firstly, <code>docker-compose</code> is is a tool for defining and running multi-container Docker applications. (<a href="https://docs.docker.com/compose/" rel="nofollow noreferrer">https://docs.docker.com/compose/</a>).
Dockerfile is single-container, if you want to run multi-containers on GKE you should convert docker-compose to kubernetes deployment.</p>

<p>You can manually convert or use <a href="http://kompose.io/" rel="nofollow noreferrer">http://kompose.io/</a> to convert automatically.</p>

CC BY-SA 4.0
2019-04-24T05:41:45.657Z
2019-04-24T05:41:45.657Z
Dat Ho
<p>Devilbox comes with a docker-compose file to run a docker container:
<a href="https://github.com/cytopia/devilbox" rel="nofollow noreferrer">https://github.com/cytopia/devilbox</a></p>

<p>However, on the GCP Kubernetes Engine it is only possible to start up a new container via a Dockerfile. I searched for a translation/conversion tool of the docker-compose file to a Dockerfile. I could not find an easy way and also read that this is not the go to approach. Is there a way to let it run in the Kubernetes Engine or do I have to create a manual instance, upload and run the code manually?
Any other approaches?</p>

<docker><kubernetes><deployment><google-cloud-platform>
How to run/deploy devilbox (Docker image) docker-compose on GCP without a Dockerfile?
Marc Bö
# How to run/deploy devilbox (Docker image) docker-compose on GCP without a Dockerfile?

(Asked by: username_0 on 2019-04-16)

Devilbox comes with a docker-compose file to run a docker container:
<https://github.com/cytopia/devilbox>

However, on the GCP Kubernetes Engine it is only possible to start up a new container via a Dockerfile. I searched for a translation/conversion tool of the docker-compose file to a Dockerfile. I could not find an easy way and also read that this is not the go to approach. Is there a way to let it run in the Kubernetes Engine or do I have to create a manual instance, upload and run the code manually?
Any other approaches?

**Tags:** docker, kubernetes, deployment, google-cloud-platform


---

## 1 answers

### Answer by username_1 on 2019-04-24. Score: 1

Firstly, `docker-compose` is is a tool for defining and running multi-container Docker applications. (<https://docs.docker.com/compose/>).
Dockerfile is single-container, if you want to run multi-containers on GKE you should convert docker-compose to kubernetes deployment.

You can manually convert or use <http://kompose.io/> to convert automatically.


---

