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?
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.
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.
We use dockerize to generate a config from that template which the container uses at startup:
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:
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!