Giter Site home page Giter Site logo

lizmap-docker-compose's Introduction

Run Lizmap stack with docker-compose

Run a complete Lizmap stack with test data.

  • Lizmap Web Client
  • QGIS Server
  • Redis

Note: this is a sample configuration for testing Lizmap web client with QGIS and WPS features.

โ—If you want to use it on a production server, you will need to make adjustments to meet your production requirements.

Requirements

  • Docker engine
  • docker-compose v2

Quick start

Execute the commands below for your system and open your browser at http://localhost:8090.

Linux

In a shell, configure the environment:

./configure.sh configure

Or if you want to test specific version (here last 3.7.x version):

LIZMAP_VERSION_TAG=3.7 ./configure.sh configure

Run lizmap:

docker compose pull
docker compose up

To run lizmap visible to another system, prefix the docker command with a variable. NB! This will be plain HTTP with no encryption and not suitable for production.

LIZMAP_PORT=EXTERNAL_IP_HERE:80 docker compose up

Windows

In order to user Docker on Windows you may install Docker desktop for Windows

If you have some distribution installed (Ubuntu, ...) in WSL, you can simply run the linux command as above, once in it.

Or in PowerShell, run the following command to set up some files

configure.bat

You can then launch the docker using

docker compose --env-file .env.windows up

Or if you want to test specific version, you can edit .env.windows and change (here last 3.7.x version):

LIZMAP_VERSION_TAG=3.7

Running the first time

The previous commands create a docker-compose environment and run the stack

The Lizmap service will start two toys projects that you will have to configure in the Lizmap interface.

See the Lizmap documentation for how to configure Lizmap at first run.

Default login is admin, password admin. It will be asked to change it at first login.

Add your own project

You need to :

  • create a directory in lizmap/instances
  • visit http://localhost:8090/admin.php/admin/maps/
  • in the Lizmap admin panel, add the directory you created
  • add one or more QGIS projects with the Lizmap CFG file in the directory

Reset the configuration

In command line

./configure.sh  clean 

This will remove all previous configuration. You will have to reenter the configuration in Lizmap as for the first run.

References

For more information, refer to the docker-compose documentation

See also:

Docker on Windows:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.