# How do I deploy Redis on Spaces

**URL:** <https://discuss.huggingface.co/t/how-do-i-deploy-redis-on-spaces/90563>\
**Category:** Spaces\
**Created:** [June 5, 2024, 10:22pm UTC](https://discuss.huggingface.co/t/how-do-i-deploy-redis-on-spaces/90563 "2024-06-05T22:22:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![janebrown](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@janebrown](https://discuss.huggingface.co/u/janebrown)\
**Post date:** [June 5, 2024, 10:22pm UTC](https://discuss.huggingface.co/t/how-do-i-deploy-redis-on-spaces/90563/1 "2024-06-05T22:22:03Z")

</div>

Hi guys,

I am woking on a search engine project and I wanna integrate Redis’s in memory database to my project. I tried deploying Redis using the Docker sdk so I used this following Dockerfile and it failed showed- “Failed to write PID file: Permission denied” you can check the files and logs also I disabled the snapshotting.

FROM redis  
COPY redis.conf /usr/local/etc/redis/redis.conf  
CMD [“redis-server”, “/usr/local/etc/redis/redis.conf”]

> **[Redis - a Hugging Face Space by janebrown](https://huggingface.co/spaces/janebrown/Redis)**
>
> Discover amazing ML apps made by the community

---

<div class="post-metadata">

**Author:** ![vvanglro](https://avatars.discourse-cdn.com/v4/letter/v/8dc957/32.png) [@vvanglro](https://discuss.huggingface.co/u/vvanglro)\
**Post date:** [June 26, 2024, 2:47pm UTC](https://discuss.huggingface.co/t/how-do-i-deploy-redis-on-spaces/90563/2 "2024-06-26T14:47:40Z")

</div>

I had the same problem.
