Redis + RedisInsight Raymond Chang Nov 29, 2024 • 1 min read Photo by Samsung Memory / Unsplash Redis是一款相當普遍常用的記憶體暫存架構,以一個Python程式來說,每個變數(variables)都是利用暫存記憶體去做儲存,並不是放置於資料庫中。version: '3.8' services: redis: image: redis:latest container_name: redis-server ports: - "6379:6379" volumes: - ./redis.conf:/usr/local/etc/redis/redis.conf # Mount custom redis.conf command: ["redis-server", "/usr/local/etc/redis/redis.conf"] # Use the custom config networks: - redis-network restart: unless-stopped redisinsight: image: redis/redisinsight:latest container_name: redisinsight ports: - "5540:5540" networks: - redis-network depends_on: - redis restart: unless-stopped networks: redis-network: driver: bridge docker-compose.yml# Set password for Redis (default) requirepass mypassword # Define the user and permissions in ACL user default_user on >19920430 ~* +@all redis.confdocker compose up -d