apiVersion: v1
kind: Pod
metadata:
  labels:
    app: workspace
  name: workspace
  namespace: static
spec:
  containers:
    - name: workspace
      image: tenlastic/node-chrome-lerna:latest
      command:
        - /bin/bash
        - -c
        - --
        - while true; do sleep 30; done;
      envFrom:
        - secretRef:
            name: workspace-environment-variables
      ports:
        - containerPort: 3000
      volumeMounts:
        - name: node-modules
          mountPath: /usr/src/projects/javascript/node_modules/
        - name: source
          mountPath: /usr/src/
      workingDir: /usr/src/
    - name: mongodb
      image: bitnami/mongodb:latest
      env:
        - name: MONGODB_ADVERTISED_HOSTNAME
          value: localhost
        - name: MONGODB_REPLICA_SET_KEY
          value: "1234567890"
        - name: MONGODB_REPLICA_SET_MODE
          value: primary
        - name: MONGODB_ROOT_PASSWORD
          value: password
    - name: minio
      image: bitnami/minio:latest
      env:
        - name: MINIO_ACCESS_KEY
          value: minioadmin
        - name: MINIO_SECRET_KEY
          value: minioadmin
    - name: nats
      image: nats:alpine
      args:
        - --js
    - name: rabbitmq
      image: bitnami/rabbitmq:latest
      env:
        - name: RABBITMQ_PASSWORD
          value: password
        - name: RABBITMQ_USERNAME
          value: username
  volumes:
    - name: node-modules
      persistentVolumeClaim:
        claimName: node-modules
    - name: source
      hostPath:
        path: /run/desktop/mnt/host/c/open-platform/
