Container with Sidecar share non PersistentVolume

Since about 2 weeks I “work” with the topic “Docker containers”. Most of it makes sense to me, so I have created a composition of two containers that share a volume.

  • sidecar - writes
  • testservice - reads

everything is created and started via “docker-compose up”.

version: '3.4'

volumes: 
  krb5cache: {}

services:

  testservice:
    container_name: api
    image: dotnet-testservice:3.1
    ports: 
      - "30032:80"
    volumes: 
      - krb5cache:/container/Cache
    depends_on: 
      - sidecar

  sidecar:
    container_name: kerberos
    image: sidecar:18.04
    volumes: 
      - krb5cache:/container/Cache
      

I don’t want create an persistent volume.
Now I want to realize the same thing with Rancher 2.5.8, can someone give me one or more tips on how to realize it?

Individual images are great to publish, even with environment variables and setting up ports

Thanks for any Advice