Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.
This repository was archived by the owner on Mar 23, 2026. It is now read-only.

Elasticsearch persistent storage #971

Description

@bastuijnman

I have a quick question, I'm using localstack in our local testing environment and I want to have Elasticsearch persist it's data across sessions.

I've noticed that running docker-compose down and docker-compose up in our environment causes the ES service deletes it's data every time on startup

https://github.com/localstack/localstack/blob/master/localstack/services/es/es_starter.py#L39

Services like S3 do seem to persist, is there a way around this for ES or was this done by design? In the latter case would you guys accept PR's to allow for persistance of ES data?

Kind regards,

Bas Tuijnman
24i

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions