def create_redis_compose_node(name):
    """
    Args:
        name(str): Name of the redis node
    Returns:
        dict: The service configuration for the redis node
    """
    return {
        "container_name": name,
        "image": "redis:3.2.8",
        "command": "redis-server --appendonly yes",
        "deploy": {
            "placement": {
                "constraints": ["node.role == worker"]
            }
        },
        "volumes": ["./volumes/{:s}/:/data/".format(name)]
    }