A Docker Compose setup for Redis 8 (including Modules) with RedisInsight for development and experimentation.
This project provides a complete Redis 8 environment with:
- Redis 8 server with persistence and modules
- RedisInsight for visual database management
- Volume-based configuration
- Persistent data storage
- Redis 8: Latest Redis version with advanced features
- Redis Modules: Pre-loaded with RedisBloom, RediSearch, RedisJSON, and RedisTimeSeries modules
- RedisInsight: Web-based Redis GUI for database management with auto-configured connection
- Persistence: Data persistence with AOF (Append Only File)
- Volume Mounts: Persistent data, logs, and configuration
- Docker
- Docker Compose
- Clone or download this project
- Navigate to the project directory
- Start the services:
docker-compose up -d- Container:
redis-server - Image:
redis:8 - Port:
6379 - Access:
redis://redis:6379(from RedisInsight) orredis://localhost:6379(from host) - Configuration: Uses
redis.confmounted from./redis.conf
- Container:
redisinsight - Image:
redislabs/redisinsight:latest - Port:
5540 - Access:
http://localhost:5540 - Auto-configured: Automatically connects to Redis server
RedisInsight should automatically connect to your Redis server when you open http://localhost:5540. If you need to manually add a connection:
- Open
http://localhost:5540in your browser - Add a new database connection:
- Host:
redis-server(container name for connecting from redis insight) orlocalhost(from host) - Port:
6379 - Username:
default(or leave empty) - Password: Leave empty (unless configured)
- Host:
docker-compose up -ddocker-compose downdocker-compose restartThis setup includes the following Redis modules (built into Redis 8):
- RedisBloom: Probabilistic data structures for scalable set membership, counting, and top-k queries
- RediSearch: Full-text search and secondary indexing
- RedisJSON: Native JSON data type support for storing, indexing, and querying JSON documents
- RedisTimeSeries: Time series data management, including ingestion, querying, and aggregation
- VectorSet: Vector similarity search capabilities
- Check if containers are running:
docker-compose ps - Check Redis logs:
docker-compose logs redis - Verify port 6379 is not used by another service
- Ensure password is correct if authentication is enabled
- Check if container is running:
docker-compose ps - Check RedisInsight logs:
docker-compose logs redisinsight - Try accessing
http://localhost:5540 - Verify port 5540 is not used by another service
- Ensure Docker has permission to mount volumes
- Check that the
data/andlogs/directories are writable
See the MIT LICENSE file for details.
Feel free to submit issues and pull requests to improve this setup.