LizMap is a complete Internet QGIS map publishing.
docker build --build-arg lizmap_version=3.6.7 -t=opengisch/lizmap:3.6.7 .
With Docker-compose:
- Create a docker-compose.yml and changing the directory path if necessary (home/lizmap/lizmap_project):
https://github.com/opengisch/docker-lizmap/blob/master/docker-compose.yml
- UP
docker-compose up -d
- Now config lizmap on web :
http://localhost/admin.php/config
- change URL WMS:
- Add /io/qgis/ for looking your geo projects
If you want to reuse a database containing tables of Lizmap 3.5, create a directory somewhere,
for example ./lizmap-previous-config
, and copy these files into it:
- at least the
installer.ini.php
of the Lizmap 3.5 installation (stored originally intolizmap/var/config
) - the
lizmapConfig.ini.php
file if you want to retrieve the list of projects - the
profiles.ini.php
file if there are specific connection profiles - the
localconfig.ini.php
andliveconfig.ini.php
if you want to retrieve some specific configuration, but you should remove from them any reference to modules that are not used anymore into your new lizmap container. - if you are using a sqlite database, the
jauth.db
database file (stored originally intolizmap/var/db
)
Modify the docker-compose.yml
file to mount the ./lizmap-previous-config
directory at /var/www/lizmap/previous-config
for the lizmap image. For example:
services:
lizmap:
...
volumes:
- ./projects:/io/data:ro
- var:/var/www/lizmap/var
- ./lizmap-previous-config/:/var/www/lizmap/previous-config
Launch docker compose. It will install the installer.ini.php
and the jauth.db
, and other configuration files if
there are present, and then it will launch the Lizmap installer which will migrate data if needed.
Stop the containers and remove the mount on /var/www/lizmap/previous-config
, else it will overwrite new data
at the next start, with the old database and old configuration files.
Lizmap Web Application generates dynamically a web map application (php/html/css/js) with the help of Qgis Server ( QGIS Server Tutorial ). You can configure one web map per Qgis project with the QGIS LizMap Plugin.
Julien ANCELIN ( julien.ancelin@inra.fr) 2017