Closed skvo1977 closed 2 years ago
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()?
Yes, you should add an entry to https://github.com/3liz/lizmap-docker-compose/blob/master/entrypoint.sh#L34, otherwise Docker will create the directory as owned by root.
Thank you. I added these changes.
I found that when I mount the folder ${LIZMAP_DIR}/var/lizmap-themes-default:/www/lizmap/var/themes/default I lose the template files for the admin interface. On default installation lizmap-docker-compose folder /www/lizmap/var/themes/default contains files. I undestand these files will need to copy in the folder ${LIZMAP_DIR}/var/lizmap-themes-default during installation lizmap-docker-compose. But I still don't understand how to do it. Because I'm not an advanced docker-user yet. I copied the necessary files manually ... I'm going to read the docker-compose documentation :)
I undestand these files will need to copy in the folder ${LIZMAP_DIR}/var/lizmap-themes-default during installation lizmap-docker-compose
This is handled in the container at runtime, this is actually a workaround the fact that lizmap configuration system is not (yet) well suited for docker use and assume that user config/default config is mixed. There is drop-in for configuration snippets that ease the process of customizing of a Docker lizmap installation but we still have some corner-cases.
I understand it. Probably for now it makes sense to leave the use of custom templates for lizmap-docker-compose as a special case for user choice and self-configuration. But the possibility of using lizmap in docker looks very attractive. Thank you for your help and great product.
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()?