forked from https://github.com/umap-project/umap

blat b2eca58f38 init 2 years ago
scripts b2eca58f38 init 2 years ago
umap b2eca58f38 init 2 years ago
Dockerfile b2eca58f38 init 2 years ago
README.md b2eca58f38 init 2 years ago
docker-compose.yml b2eca58f38 init 2 years ago
docker-entrypoint.sh b2eca58f38 init 2 years ago
requirements-docker.txt b2eca58f38 init 2 years ago
uwsgi.ini b2eca58f38 init 2 years ago

README.md

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