Skip to content

Environment variable for lizmapPluginAPIURL #97

@ddev1993

Description

@ddev1993

Feature Request: Environment variable for lizmapPluginAPIURL

Problem

Currently, the lizmapPluginAPIURL setting in Lizmap Web Client is hardcoded to use http://map:8080/lizmap/ as shown in the official documentation. This creates issues in multi-tenant Docker deployments where multiple Lizmap instances run on the same Docker network.

When multiple stacks share the same network (e.g., traefik_default), the network alias map creates conflicts because Docker randomly routes requests to one of the containers using that alias.

Current Workaround

The only solution is to create a separate internal network for each stack with dedicated aliases:

  • Stack 1: geoportal_internal_stack1 network with alias map
  • Stack 2: geoportal_internal_stack2 network with alias map
  • etc.

This works but increases network complexity.

Proposed Solution

Add an environment variable (e.g., LIZMAP_PLUGINAPIURL) to allow customization of the plugin API URL, similar to how LIZMAP_WMSSERVERURL already works.

Example:

environment:
  LIZMAP_WMSSERVERURL: http://geoportal-stack1:8080/ows/
  LIZMAP_PLUGINAPIURL: http://geoportal-stack1:8080/lizmap/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions