# Encryption at rest

**URL:** <https://discuss.elastic.co/t/encryption-at-rest/340580>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [August 10, 2023, 4:04pm UTC](https://discuss.elastic.co/t/encryption-at-rest/340580 "2023-08-10T16:04:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Buddha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/buddha/32/101523_2.png) [@Buddha](https://discuss.elastic.co/u/Buddha)\
**Post date:** [August 10, 2023, 4:04pm UTC](https://discuss.elastic.co/t/encryption-at-rest/340580/1 "2023-08-10T16:04:54Z")

</div>

Using the docker-compose.yml file found in the official Elastic documents: [Install Elasticsearch with Docker | Elasticsearch Guide [8.9] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-file), is my data encryption at rest? Or do I need to add something to the environment variables?

Mike

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [August 10, 2023, 6:02pm UTC](https://discuss.elastic.co/t/encryption-at-rest/340580/2 "2023-08-10T18:02:55Z")

</div>

Elasticsearch does not encrypt data, this needs to be done on the operating system level.

So in this case you would need to configure the encryption on the host docker level and make sure that the disks for the persistent volumes are encrypted, but how you will do that is out of the scope of this forum.

You can read more on this [post](https://discuss.elastic.co/t/how-should-i-encrypt-data-at-rest-with-elasticsearch/96).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 7, 2023, 6:03pm UTC](https://discuss.elastic.co/t/encryption-at-rest/340580/3 "2023-09-07T18:03:00Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
