apiVersion: apps/v1
kind: Deployment
metadata:
  name: protools-camunda
spec:
  replicas: 1
  selector:
    matchLabels:
      app: protools-camunda
  template:
    metadata:
      labels:
        app: protools-camunda
    spec:
      containers:
        - name: protools-camunda
          image: mailinenguyen/protools-camunda
          env:
            - name: SPRING_DATASOURCE_PASSWORD
              valueFrom:
                secretKeyRef:
                  name: protools-camunda-postgresql
                  key: postgres-password
            - name: SPRING_DATASOURCE_USERNAME
              value: postgres
            - name: SPRING_DATASOURCE_URL
              value: jdbc:postgresql://protools-camunda-postgresql/