# How do I deploy Redis on Spaces

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-do-i-deploy-redis-on-spaces%2F90563%3E%5C
**Category:** Spaces\
**Created:** [June 5, 2024, 10:22pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-do-i-deploy-redis-on-spaces%2F90563 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fjanebrown)%5C
**Post date:** [June 5, 2024, 10:22pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-do-i-deploy-redis-on-spaces%2F90563%2F1 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fvvanglro)%5C
**Post date:** [June 26, 2024, 2:47pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-do-i-deploy-redis-on-spaces%2F90563%2F2 "2024-06-26T14:47:40Z")

</div>

I had the same problem.
