Hi ABP Team,
We're starting our first project with ABP Commercial, using both the main web application and the public website. We've noticed that Redis is required for proper functionality, which is completely fine.
However, it seems like the documentation and setup assume Redis will be run in Docker. In our case, we have multiple existing web applications running under IIS without any Docker infrastructure or experience.
We're trying to understand the best path forward. Using Docker just for Redis seems like an overkill and introduces unnecessary complexity into our current infrastructure. So our main question is:
Do you officially recommend running Redis in Docker, or is it equally supported and safe to run Redis as a Windows service or via other non-Docker means?
We want to make sure we're following best practices without overcomplicating the deployment for just one component.
Thanks for the clarification and guidance.
Best regards, Lukáš
3 Answer(s)
-
0
ABP Framework does not require Redis to be run in Docker. Redis can be safely and fully supported as a Windows service or any other non-Docker installation. The official ABP documentation and community articles provide examples using Docker for convenience, but this is not a requirement or a best-practice mandate.
You can install Redis as a Windows service or use any supported method for your environment. The only requirement is that your ABP application's Redis connection string points to the correct host and port where Redis is running.
In your appsettings, simply configure the Redis connection string to match your Redis instance (e.g., "localhost:6379" or another host/port as needed). No changes to ABP code or modules are required for this.
Running Redis as a Windows service is a common and supported approach for IIS-based deployments without Docker.
Sources:
- Redis setup and configuration for ABP:
- https://abp.io/community/articles/94old5rm
- https://abp.io/docs/latest/kb/when-to-use-a-distributed-cache-server
- Example of configuring Redis port and host:
- https://abp.io/support/questions/278
This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.
-
0
[AI-Bot] said:
ABP Framework does not require Redis to be run in Docker. Redis can be safely and fully supported as a Windows service or any other non-Docker installation. The official ABP documentation and community articles provide examples using Docker for convenience, but this is not a requirement or a best-practice mandate.
You can install Redis as a Windows service or use any supported method for your environment. The only requirement is that your ABP application's Redis connection string points to the correct host and port where Redis is running.
In your appsettings, simply configure the Redis connection string to match your Redis instance (e.g., "localhost:6379" or another host/port as needed). No changes to ABP code or modules are required for this.
Running Redis as a Windows service is a common and supported approach for IIS-based deployments without Docker.
Sources:
- Redis setup and configuration for ABP:
- https://abp.io/community/articles/94old5rm
- https://abp.io/docs/latest/kb/when-to-use-a-distributed-cache-server
- Example of configuring Redis port and host:
- https://abp.io/support/questions/278
This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.
I don't think the agent's response answered my question.
-
0
hi
However, it seems like the documentation and setup assume Redis will be run in Docker.
Using Redis in Docker during development is quite common. App just use the
127.0.0.1
as Redis connection string, You can replace it with yours.Do you officially recommend running Redis in Docker, or is it equally supported and safe to run Redis as a Windows service or via other non-Docker means?
For production, you can install Redis directly on your server or use a cloud Redis service. The app only needs a connection string. You can set up a Redis server based on your needs.
See https://redis.io/docs/latest/operate/oss_and_stack/install/archive/install-redis/
Thanks