Find a file
2021-10-04 12:10:08 +02:00
scripts init 2021-10-04 12:10:08 +02:00
umap/settings init 2021-10-04 12:10:08 +02:00
docker-compose.yml init 2021-10-04 12:10:08 +02:00
docker-entrypoint.sh init 2021-10-04 12:10:08 +02:00
Dockerfile init 2021-10-04 12:10:08 +02:00
README.md init 2021-10-04 12:10:08 +02:00
requirements-docker.txt init 2021-10-04 12:10:08 +02:00
uwsgi.ini init 2021-10-04 12:10:08 +02:00

uMap

About

uMap lets you create maps with OpenStreetMap layers in a minute and embed them in your site. Because we think that the more OSM will be used, the more OSM will be improved. It uses django-leaflet-storage and Leaflet.Storage, built on top of Django and Leaflet.

Umap

docker support from https://github.com/Duvel/umap
umap documentation at https://umap-project.readthedocs.io/en/latest/install/

Install

cd /opt/
git clone https://git.lattuga.net/blat/umap
chmod -x ./scripts/install.sh
./scripts/install.sh
Create admin
docker exec -ti umap_app_1 umap createsuperuser

Backup

There are two important places where your data are located, in your database and in your media folder.

chmod -x ./scripts/backup.sh
./scripts/backup.sh

read more about backups: https://github.com/umap-project/umap/blob/update-docs-backup-commands/docs/backup.md

Restore

edit db_$(date +"%Y-%B-%d").zip with your backup date

  • require root privilegies to fix permission on db folder
chmod -x ./scripts/restore.sh
./scripts/restore.sh

Upgrade

select a version and build a new image

  • require root privilegies to fix permission on db folder
chmod -x ./scripts/upgrade.sh
./scripts/upgrade.sh