influxdata-docker icon indicating copy to clipboard operation
influxdata-docker copied to clipboard

Allow setting default Retention policy with Variable on Docker deployment

Open yurividal opened this issue 4 years ago • 2 comments

Having a variable such as DEFAULT_RETENTION_POLICY to set the number of days in the default retention policy would make it a lot easier for deployments where storage is a concern.

yurividal avatar Aug 14 '20 10:08 yurividal

I agree, that would be a very handy feature. BTW, the same request appears on issue #282

j-zarp avatar Oct 06 '20 07:10 j-zarp

Apparently, there is an env var for this purpose mentioned in hub.docker: DOCKER_INFLUXDB_INIT_RETENTION However, I don't know why it doesn't work! (i.e. issue #580)

agn-7 avatar Feb 21 '22 11:02 agn-7