# Archival and docker-compose

**URL:** <https://community.temporal.io/t/archival-and-docker-compose/1120>\
**Category:** Community Support\
**Tags:** go-sdk, mysql\
**Created:** [December 3, 2020, 2:40pm UTC](https://community.temporal.io/t/archival-and-docker-compose/1120 "2020-12-03T14:40:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pedro\_Almeida](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/pedro_almeida/32/35_2.png) [@Pedro\_Almeida](https://community.temporal.io/u/Pedro_Almeida)\
**Post date:** [December 3, 2020, 2:40pm UTC](https://community.temporal.io/t/archival-and-docker-compose/1120/1 "2020-12-03T14:40:51Z")

</div>

Hello,

We currently use temporal server with docker-compose. Looking into the Archival [Docs](https://docs.temporal.io/docs/archive-data), seems it is not supported when running with docker-compose?

 ![image](https://us1.discourse-cdn.com/flex016/uploads/temporal/original/1X/8f99d0711e83b40ea810ae0eb622fc09ad1f49a6.png)

Just wondering if there is a workaround before thinking in changing our setup.

Also, i believe the retention period is set when creating the namespace correct? Is there a way to change the retention period afterwards? If yes, how?

Thanks!

---

<div class="post-metadata">

**Author:** ![ryland](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/ryland/32/11_2.png) [@ryland](https://community.temporal.io/u/ryland)\
**Post date:** [December 3, 2020, 5:16pm UTC](https://community.temporal.io/t/archival-and-docker-compose/1120/2 "2020-12-03T17:16:03Z")

</div>

Hey! First off I want to make sure that it’s clear that archival and retention period are separate things. While it might make sense to run with retention on your local docker setup, it’s very unlikely that running locally with archival makes sense. Can I ask what your use case is for archival when running with `docker-compose`?

In general it isn’t straightforward to change config such as archival with our docker-compose setup. That being said, depending on your use case it might make sense.

---

<div class="post-metadata">

**Author:** ![Pedro\_Almeida](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/pedro_almeida/32/35_2.png) [@Pedro\_Almeida](https://community.temporal.io/u/Pedro_Almeida)\
**Post date:** [December 4, 2020, 9:56am UTC](https://community.temporal.io/t/archival-and-docker-compose/1120/3 "2020-12-04T09:56:52Z")

</div>

Hello @ryland,

So far, we only used temporal with docker-compose in all envs. I understand this is not the recommended way for production, but for now we have to stick with docker-compose. We will be looking into the helm-charts when the solution is ready.

If not easy use Archive with docker-compose, we’ll have to deal with it when we switch to a non docker-compose setup. Goal here was to see how it works, test it and check the features we can use within our reality.

I’ve already managed to change the Retention Period in the namespace with the tctl tool.

Thanks for the feedback!

---

<div class="post-metadata">

**Author:** ![ryland](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/ryland/32/11_2.png) [@ryland](https://community.temporal.io/u/ryland)\
**Post date:** [December 4, 2020, 5:15pm UTC](https://community.temporal.io/t/archival-and-docker-compose/1120/4 "2020-12-04T17:15:30Z")

</div>

Hey, completely understand. Let me add @derek to this thread who probably knows best how to change config with our existing docker-compose setup.

- Ry

---

<div class="post-metadata">

**Author:** ![derek](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/derek/32/245_2.png) [@derek](https://community.temporal.io/u/derek)\
**Post date:** [December 4, 2020, 6:41pm UTC](https://community.temporal.io/t/archival-and-docker-compose/1120/6 "2020-12-04T18:41:13Z")

</div>

Hi @Pedro_Almeida

We use dockerize to generate a config from that template which the container uses at startup:

> <https://github.com/temporalio/temporal/blob/master/docker/start-temporal.sh>

It’s possible to do things we haven’t exposed via docker-compose if you edit the config-template.yaml before you start your containers:

> <https://github.com/temporalio/temporal/blob/master/docker/config_template.yaml#L243>

The provider in the archival section and the namespaceDefaults should be adjusted as needed.

You will also potentially need to add access to credentials depending on the provider used or mount a path on your host for the container to write to if using the filesystem.

Good luck! If you test this out, we’d love to hear how it goes!

---

<div class="post-metadata">

**Author:** ![Meridian\_Asllani](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/meridian_asllani/32/7894_2.png) [@Meridian\_Asllani](https://community.temporal.io/u/Meridian_Asllani)\
**Post date:** [November 2, 2025, 3:11pm UTC](https://community.temporal.io/t/archival-and-docker-compose/1120/7 "2025-11-02T15:11:30Z")

</div>

Hello @derek , I am currently on the same issue here and tried this, but it doesn’t seem to work as the compiled temporal-server image still has its default files. Is there any alternative solution towards enabling archive in s3? Please can you help?
