# Support for docker-compose in spaces

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsupport-for-docker-compose-in-spaces%2F41512%3E%5C
**Category:** Spaces\
**Created:** [May 30, 2023, 3:34pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsupport-for-docker-compose-in-spaces%2F41512 "2023-05-30T15:34:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thawro](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/thawro/32/16452_2.png) [@thawro](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fthawro)%5C
**Post date:** [May 30, 2023, 3:34pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsupport-for-docker-compose-in-spaces%2F41512%2F1 "2023-05-30T15:34:30Z")

</div>

Are you planning to support `docker-compose.yaml` (the same as it is currently done for `Dockerfile`)? It would be great to have possibility to create an app with backend and frontend services controlled by `docker-compose`. I would like to implement this type of pipeline:  
Frontend (ReactJS) - img → DL model on backend (FastAPI) - class label → frontend (ReactJS)  
and with current option (Dockerfile) it is not possible.

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fradames)%5C
**Post date:** [June 1, 2023, 11:37pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsupport-for-docker-compose-in-spaces%2F41512%2F2 "2023-06-01T23:37:20Z")

</div>

hi @thawro , thanks for the suggestion, currently we don’t have plans to support `docker-compose`.  
However you could have multiple applications in the same deployment by using a reverse proxy.  
Here is a handy template for you, in this example we have a simple python web server and Gradio running concurrently launched via this script [run.sh · radames/nginx-gradio-reverse-proxy at main](https://huggingface.co/spaces/radames/nginx-gradio-reverse-proxy/blob/main/run.sh) then proxy setup here [nginx.conf · radames/nginx-gradio-reverse-proxy at main](https://huggingface.co/spaces/radames/nginx-gradio-reverse-proxy/blob/main/nginx.conf)

> **[radames/nginx-gradio-reverse-proxy at main](https://huggingface.co/spaces/radames/nginx-gradio-reverse-proxy/tree/main)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.
