In docker-compose I was used to create volumes in this way:

```
volumes:
  - ./server:/home/app
  - /home/app/node_modules

```

in order to solve the problem of `node_modules`.

How could I approach the problem in kubernetes?

I've created the following config

```
  spec:
    containers:
    - env: []
      image: "image"
      volumeMounts:
      - mountPath: /home/app
        name: vol-app
      - mountPath: /home/app/node_modules
        name: vol-node-modules
      name: demo
    volumes:
    - name: vol-app
      hostPath:
        path: /Users/me/server
    - name: vol-node-modules
      emptyDir: {}

```

but it doesn't work. the node\_modules is empty