Saving Maps

17 views
Skip to first unread message
Assigned to lorenzo...@geosolutionsgroup.com by me

Reda Mrini Derhmira

unread,
Oct 23, 2022, 1:44:20 PM10/23/22
to mapstore-users
hello I got a problem in my Mapstore.
Everything is working good and when I save my Mpas and context it shows that they are saved and good and when I stop the container and I close my my mapstore and started over (with the npm install methode) all my contextes and maps are gone.

Lorenzo Natali

unread,
Oct 24, 2022, 3:58:08 AM10/24/22
to mapstore-users
Hi, 
docker image by default starts with the default database, in memory.
You should connect MapStore to a postgres DB,

e.g.

docker run \ -v `pwd`/docker/geostore-datasource-ovr-postgres.properties:/usr/local/tomcat/conf/geostore-datasource-ovr.properties \ -e JAVA_OPTS="-Xms512m -Xmx512m -XX:MaxPermSize=128m -Dgeostore-ovr=file:///usr/local/tomcat/conf/geostore-datasource-ovr.properties" \ --name mapstore \ -p8080:8080 \ geosolutionsit/mapstore2

For database setup, look here.
Reply all
Reply to author
Forward
0 new messages