Question concerning docker compose and git pr deployment

Hey,

I would have some technical questions!

I see there is a GitHub action to create deployments for pull requests on GitHub. And I see there are docs and examples for running an app with docker compose.

Is it possible to run the GitHub action to deploy an app with docker compose?

Would the container for the app be rebuilt on every push or can the layers be cached?

If I have a Postgres container for example, would the data be retained on redeploys?

Thank you

Hello @proben

Sure, just make sure to set the proper parameters git-docker-dockerfile, privileged and so on.

Everything will be rebuild

No, on each redeployment the data will be lost. To retain the data you can use volumes or our hosted DB