version: '3.8'

services:
  valkey:
    image: valkey/valkey:8.0
    container_name: tongo-valkey
    ports:
      - "6379:6379"
    volumes:
      - valkey_data:/data
    restart: always

  redisinsight:
    image: redis/redisinsight:latest
    container_name: tongo-redisinsight
    ports:
      - "5540:5540"
    volumes:
      - redisinsight_data:/db
    depends_on:
      - valkey
    restart: always

volumes:
  valkey_data:
  redisinsight_data:
