How to add custom graby-site-config to Wallabag docker version?
How can I add a custom graby-site-config to the docker version of Wallabag? /var/www/wallabag/vendor/j0k3r/graby-site-config has many files in it, so I can't map it to a host directory and add my custom file there. But I can't add it directly to the image, of course, or it won't persist.
Also would like to know. I see this is also called wallabag "site credentials" but I have no clue how to add
@jeff47 you should be able to mount single file to docker without any trouble, it is same as mounting directory with -v or with volumes config in docker docmpose.
Mounting single file is viable, but tedious if you have lots of configs.
I solved this by mounting my configs :ro in /host-overlay, and then adding this to my compose:
entrypoint:
- sh
- -c
- |
cp -rT /host-overlay/. /var/www/wallabag/vendor/j0k3r/graby-site-config/ 2>/dev/null || true
exec /entrypoint.sh wallabag
This copies my custom configs to the container's configs directory (and overwrites existing if I need to update an existing config not working quite right). It's not pretty, but it seems to work fine.