apiVersion: apps/v1
kind: Deployment
metadata:
  name: www-server-webportal
  labels:
    app: php-www-webportal
spec:
  replicas: 1
  selector:
    # will match template label(s)
    matchLabels:
      app: php-www-webportal
  template:
    metadata:
      labels:
        # (this one)
        app: php-www-webportal
    spec:
      containers:
        - name: php-www-webportal
          image: rmbsousa/4bop:php70_xdebug_active
#          command: ["bash", "-c", "--"]
#          args: ["while true; do sleep 10; done;"]
#          ports:
#            - containerPort: 80
          volumeMounts:
            - name: app-code
              mountPath: /www
#            - name: config-code
#              mountPath: /var/www
#          lifecycle:
#            postStart:
#              exec:
#                command: ["/bin/bash", "/var/www/minikube/config-webportal.sh"]
      volumes:
        - name: app-code
          hostPath:
            path: "/c/Users/NBxxxxx/Zend/workspaces/DefaultWorkspace"
#        - name: config-code
#          hostPath:
#            path: "/c/Users/NBxxxxx/projects"
