MerginMaps/server

Persist data

SamyOteroGlez opened this issue · 1 comments

Hi all,

When starting MerginMaps using docker I noticed that it creates a new volume .

Is there a way to persist the docker container database specifically for this setup?

I tried using named volumes this:

    volumes:
      - mergin_db:/var/lib/postgresql

but it did not seems to work.

At this moment every time I restart the containers, it creates a brand new volume, and I have to trigger the db init script, user creation script.

Thanks in advance

Sam

This would do.

volumes:
      - mergin_db:/var/lib/postgresql/data

I am closing this issue.