Docker compose

I am using microk8s and have an app which requires multiple dockers to run (which I use docker-compose for). However, I want to run this app so looking for equivalent of docker compose in microk8s, I tried using kompose but it runs into issue when I try command “kompose up” and when I run “kompose convert docker-compose.yaml”, it does generate multiple yaml file (one each for service and app deployment), but it run into issues wherein one docker fails to communicate with the other docker.

root@ip-:/home/ubuntu/docker-compose-sample-app# kompose convert
INFO Kubernetes file “app-service.yaml” created
INFO Kubernetes file “mongo-service.yaml” created
INFO Kubernetes file “app-deployment.yaml” created
INFO Kubernetes file “mongo-deployment.yaml” created

When I deploy the above, mongo db is failing to connect to the app. What could I be missing here?