I built Redis for my Nextcloud to not get files locking error, so It will help my Nextcloud to upload smooth and using Nextcloud 24/7 instead fail to upload.
So let get start first we need to create a network.
docker network create redis
Then go Portainer to create stacks.
Portainer site → login admin account → stacks → add stacks
version: '3.3' services: redis: container_name: redis image: redis networks: - redis restart: unless-stopped command: redis-server --requirepass KWPvQ9VQ%V3KKShgg%SDq networks: redis: external: true
Deploy the stack and this app is now online and make sure you put Nextcloud config to connect this Redis server we created.

'memcache.local' => '\\OC\\Memcache\\APCu', 'filelocking.enabled' => true, 'memcache.locking' => '\\OC\\Memcache\\Redis', 'redis' => array ( 'host' => 'redis', 'port' => 6379, 'timeout' => 0.0, 'password' => 'KWPvQ9VQ%V3KKShgg%SDq', ),
Then You’re good to go and your Nextcloud is now working with Redis.
Leave a Reply