Cli/ref/mw docker redis
Jump to navigation
Jump to search
mw docker redis
redis service
Synopsis
Redis service
Using this service will automagically configure (but not use) an object cache in MediaWiki
$wgObjectCaches['redis'] = [
'class' => 'RedisBagOStuff',
'servers' => [ 'redis:6379' ],
];
Exposing locally
To expose the Redis service locally, you can set the REDIS_PORT environment variable to a port on your host machine.
For example, to expose the Redis service on port 6379:
mw docker env set REDIS_PORT 6379
mw docker redis create
Documentation
- Redis
- [wgObjectCaches)
Options inherited from parent commands
-c, --context string The context to use (default "default")
--help Help for this command
--no-interaction Do not ask any interactive questions
-v, --verbose count Increase output verbosity. Example: --verbose=2 or -vv
SEE ALSO
- [[../mw_docker|mw docker]] - An advanced docker compose based development environment
- [[../mw_docker_redis_create|mw docker redis create]] - Create the containers
- [[../mw_docker_redis_destroy|mw docker redis destroy]] - Destroy the containers
- [[../mw_docker_redis_exec|mw docker redis exec]] - Execute a command in the main container
- [[../mw_docker_redis_image|mw docker redis image]] - Interact with the image used for the service
- [[../mw_docker_redis_redis-cli|mw docker redis redis-cli]] - Runs redis-cli in the container
- [[../mw_docker_redis_start|mw docker redis start]] - Start the containers
- [[../mw_docker_redis_stop|mw docker redis stop]] - Stop the containers