apiVersion: apps/v1
kind: Deployment
metadata:
  name: tasksbackenddeployment
spec:
  selector:
    matchLabels:
      app: tasksbackendlabel
  replicas: 2
  template:
    metadata:
      labels:
        app: tasksbackendlabel
    spec:
      containers:
        - name: tasksbackend
          imagePullPolicy: Never
          image: tasks-backend
          ports:
            - containerPort: 8000
          env:
            - name: PORT
              value: "8000"
            - name: MONGO_URI
              value: "mongodb://tasksdatabaseservice:27017/tasks"
