# Does Okteto Starter Pro redeploy automatically after some time?

**URL:** <https://community.okteto.com/t/does-okteto-starter-pro-redeploy-automatically-after-some-time/481>\
**Category:** Help\
**Created:** [December 22, 2022, 12:09pm UTC](https://community.okteto.com/t/does-okteto-starter-pro-redeploy-automatically-after-some-time/481 "2022-12-22T12:09:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Canta](https://avatars.discourse-cdn.com/v4/letter/c/74df32/32.png) [@Canta](https://community.okteto.com/u/Canta)\
**Post date:** [December 22, 2022, 12:09pm UTC](https://community.okteto.com/t/does-okteto-starter-pro-redeploy-automatically-after-some-time/481/1 "2022-12-22T12:09:35Z")

</div>

Hi all, I deployed a project with Starter Pro and noticed that it automatically redeployed yesterday which made the project break. Is there a way to stop redeployment? Further, is there some guide how to store data on a volume in Okteto so that it does not need to be downloaded again when there a redeployment happens?

Many thanks!

---

<div class="post-metadata">

**Author:** ![pchico83](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/pchico83/32/25_2.png) [@pchico83](https://community.okteto.com/u/pchico83)\
**Post date:** [December 22, 2022, 12:16pm UTC](https://community.okteto.com/t/does-okteto-starter-pro-redeploy-automatically-after-some-time/481/2 "2022-12-22T12:16:51Z")

</div>

Hi Canta,

Containers can be recreated at any time because the cluster scales up and down based on load, and sometimes we need to upgrade the nodes of the cluster.

How did you deploy your application? Docker compose? Helm charts?

You can attach persistent volumes to your containers to persist your data if the containers are restarted:

> **[Docker Compose Reference | Okteto Documentation](https://www.okteto.com/docs/reference/compose/#volumes-object-optional)**
>
> Okteto allows you to develop applications using docker-compose files

---

<div class="post-metadata">

**Author:** ![Canta](https://avatars.discourse-cdn.com/v4/letter/c/74df32/32.png) [@Canta](https://community.okteto.com/u/Canta)\
**Post date:** [December 22, 2022, 1:34pm UTC](https://community.okteto.com/t/does-okteto-starter-pro-redeploy-automatically-after-some-time/481/3 "2022-12-22T13:34:55Z")

</div>

> [@pchico83](#):
>
> [Docker Compose Reference | Okteto Documentation](https://www.okteto.com/docs/reference/compose/#volumes-object-optional)

Thanks for the quick and helpful reply! 🙂

---

<div class="post-metadata">

**Author:** ![Canta](https://avatars.discourse-cdn.com/v4/letter/c/74df32/32.png) [@Canta](https://community.okteto.com/u/Canta)\
**Post date:** [December 23, 2022, 10:15am UTC](https://community.okteto.com/t/does-okteto-starter-pro-redeploy-automatically-after-some-time/481/4 "2022-12-23T10:15:14Z")

</div>

Maybe I can ask you a follow-up question. I use docker-compose for deployment. When running the application I use a bash command that fetches the data from AWS. Now, in case of a redeployment, it would use the same bash command, even though there would be a volume with the data and it would fetch again the data from AWS. How would one deal with this? An idea I had was somehow checking if there is a non-empty volume available in the Dockerfile and depending on this run a different docker-compose file. But I do not really know how to do so.

Many thanks again!

---

<div class="post-metadata">

**Author:** ![ramiro](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/ramiro/32/6_2.png) [@ramiro](https://community.okteto.com/u/ramiro)\
**Post date:** [May 7, 2024, 7:18pm UTC](https://community.okteto.com/t/does-okteto-starter-pro-redeploy-automatically-after-some-time/481/5 "2024-05-07T19:18:08Z")

</div>


