Refer to the version matrix in the official curator repository on which version to use.
3.5.1 - Dockerfile
This version has the option to backup snapshot to s3 and/or delete indices based upon the following values.
Environment Variables:
CRON_SCHEDULE: Crontab schedule for curator to run, Default:0 0 * * *i.e. Daily at 00:00ELASTICSEARCH_HOST: Elasticsearch hostELASTICSEARCH_PORT: Elasticsearch portSNAPSHOT_NAME: Name of the snapshot repository in ESBUCKET_NAME: Name of the bucket in which indice snapshots are to be backedupBUCKET_BASE_PATH: Base path inside bucket where indices backup must be storedAWS_REGION: AWS region of the bucketTIME_UNIT:[hours|days|weeks|months] Unit of time to reckon byTIMESTRING: Python strftime string to match your index definition, e.g. 2014.07.15 would be %Y.%m.%dOLDER_THAN: Include only indices older than n time_units (Integer)DO_SNAPSHOT: If variable is set (default), enables the code snippet which takes snapshot and backs up indices to s3DO_DELETE: If variable is set (default), enables the code snippet which deletes indciesLOGLEVEL: Log level of the curator log, default:INFOLOGFILE: File in which curator writes its logs, default/var/log/curator.logEXTRA_OPTS: Pass extra flag options to curator e.g.--dry-run
Example Usage:
Elasticsearch running on host and disabling snapshot, only deleting incdices
docker run -d -e ELASTICSEARCH_HOST=elasticsearch -e DO_SNAPSHOT="" stakater/elasticsearch-curator