Connect to mongodb with mongoose both in kubernetes
问题 I have a microservice which I developed and tested using docker-compose. Now I would like to deploy it to kubernetes. Part of my docker-compose file looks like this: tasksdb: container_name: tasks-db image: mongo:4.4.1 restart: always ports: - '6004:27017' volumes: - ./tasks_service/tasks_db:/data/db networks: - backend tasks-service: container_name: tasks-service build: ./tasks_service restart: always ports: - "5004:3000" volumes: - ./tasks_service/logs:/usr/src/app/logs - ./tasks_service