docker icon indicating copy to clipboard operation
docker copied to clipboard

How to add custom graby-site-config to Wallabag docker version?

Open jeff47 opened this issue 2 years ago • 3 comments

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.

jeff47 avatar Apr 01 '24 16:04 jeff47

Also would like to know. I see this is also called wallabag "site credentials" but I have no clue how to add

maltokyo avatar May 20 '25 09:05 maltokyo

@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.

kepi avatar May 25 '25 17:05 kepi

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.

ak-42 avatar Nov 14 '25 10:11 ak-42