Bind mount external volume path instead of /srv in docker for PMM data

If you use a bind-mount to the pmm-server container, like I demonstrated above, then pmm-data is irrelevant as you won’t use it at all. Thus, no duplication of data anywhere.

There are 2 exclusive choices:

  1. use pmm-data container, which writes its data to your docker volumes path
  2. no pmm-data container and bind-mount path to pmm-server to pick whereever you want the data written
1 Like