From ad93110773903c7432aa95b4da213a3300ba568f Mon Sep 17 00:00:00 2001 From: skvo1977 <89645689+skvo1977@users.noreply.github.com> Date: Wed, 15 Jun 2022 12:51:36 +0300 Subject: [PATCH 1/2] Use custom templates in lizmap-docker Update docker-compose.yml Add - ${LIZMAP_DIR}/var/lizmap-themes-default:/www/lizmap/var/themes/default To use custom templates as described in the documentation https://docs.lizmap.com/current/en/publish/customization/template.html Additionally, I manually created a directory ${LIZMAP_DIR}/var/lizmap-themes-default in my lizmap-docker directory. It would be better to create this directory when installing lizmap-docker-compose - need to make changes to a file entrypoint.sh in section _makedirs()? --- docker-compose.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-compose.yml b/docker-compose.yml index 02b459b..7024cee 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,6 +15,7 @@ services: volumes: - ${LIZMAP_PROJECTS}:/srv/projects - ${LIZMAP_DIR}/var/lizmap-theme-config:/www/lizmap/var/lizmap-theme-config + - ${LIZMAP_DIR}/var/lizmap-themes-default:/www/lizmap/var/themes/default - ${LIZMAP_DIR}/var/lizmap-config:/www/lizmap/var/config - ${LIZMAP_DIR}/var/lizmap-db:/www/lizmap/var/db - ${LIZMAP_DIR}/www:/www/lizmap/www From ee2e814ea3144954343a76eb70941c34a27c818c Mon Sep 17 00:00:00 2001 From: Alexandra Skvortsova <89645689+skvo1977@users.noreply.github.com> Date: Thu, 16 Jun 2022 10:08:21 +0300 Subject: [PATCH 2/2] Update entrypoint.sh Add line to create directory for use custom templates - $INSTALL_DEST/var/lizmap-themes-default \ --- entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/entrypoint.sh b/entrypoint.sh index 7851452..9d751a7 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -39,6 +39,7 @@ _makedirs() { $INSTALL_DEST/var/log/nginx \ $INSTALL_DEST/var/nginx-cache \ $INSTALL_DEST/var/lizmap-theme-config \ + $INSTALL_DEST/var/lizmap-themes-default \ $INSTALL_DEST/var/lizmap-db \ $INSTALL_DEST/var/lizmap-config \ $INSTALL_DEST/var/lizmap-modules \