THIS IS NOT FOR PRODUCTION USE
- 2.3
- 2.4
docker-compose.yaml
redis-cache:
image: wwright/magento2-redis:
command: [redis-server,/etc/redis/6379-redis-cache.conf]
redis-fpc:
image: wwwright/maegnto2-redis
command: [redis-server,/etc/redis/6380-redis-fpc.conf]
redis-session:
image: wwright-magento2-redis
command: [redis-server,/etc/redis/6381-redis-sessions.conf]
docker run wwright/magento2-redis redis-server /etc/redis/6379-redis-cache.conf
Configuration files can be overwritten by mounting a volume containing your customized configurations.
Examples
docker run -v /Users/myuser/etc/redis:/etc/redis wwright/magento2-redis redis-server /etc/redis/my-custom-config.conf
redis-session:
volumes:
- /Users/myuser/etc/redis:/etc/redis
image: wwright/magento2-redis
command: [redis-server,/etc/redis/my-custom-config.conf]