linuxserver / docker-bookstack

A Docker container for the BookStack documentation wiki
GNU General Public License v3.0
797 stars 109 forks source link

Ability to use custom template changes #108

Closed cb3inco closed 2 years ago

cb3inco commented 3 years ago

Desired Behavior

Prior to 28.0.1 I was able to manually mount /var/www/html/themes in my docker-compose file to modify certain files to update the default template. I would like this ability in subsequent versions.

Current Behavior

As of 28.0.2 and 28.0.3 it seems to be no longer possible to mount this path as a volume and make custom template changes.

Alternatives Considered

Not sure other than compiling my own image.

github-actions[bot] commented 3 years ago

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

ssddanbrown commented 3 years ago

Potentially related to https://github.com/linuxserver/docker-bookstack/issues/107#issuecomment-927134415

Sazzels commented 3 years ago

i have the same issue. since i use bookstack mainly as a documentation platform, i change some spellings via the template mount into the container and setting the environment variable (docker-compose).

environment:
      ...
      # Theme
      - APP_THEME='<name>'
      ...
volumes:
      ...
      - '/path/to/themes-data/de:/var/www/html/themes/<name>/lang/de'
      - '/path/to/themes-data/de_informal:/var/www/html/themes/<name>/lang/de_informal'
      ...

removing this - solves the "File not found!" issue.

serenewaffles commented 3 years ago

As a workaround, I was able to put this in a file I called 91-themes under the custom-cont-init.d folder. This is called as a final step in setting up the container.

rm -r /var/www/html/themes
ln -s /config/www/themes /var/www/html/themes

ETA: after further testing, this doesn't work.

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

ffranchina commented 2 years ago

Hello, did you find any viable workaround for such problem while we wait for #111 to be merged?