Influx data retention

I use OH4 on docker and want to use grafana. I installed the influx add-on but can’t figure out how to limit the persistance to one year. Is that possible with the add-on or do I need to run influx in a separate container ?

The Influx addon connects to any available Influx DB, but you need to setup that first: InfluxDB (0.9 and newer) - Persistence Services | openHAB
A separate Container is a good idea and there you can also setup the retention, not in openHAB.