Skip to content

[Question]: Displaying images created by services in the docker network #2631

Answered by dividor
dividor asked this question in Q&A
Discussion options

You must be logged in to vote

I got this to work doing the following ...

  1. I saved a copy of nginx.conf locally
  2. I edited it to add a directory to serve images ...
    location /files/ {
            root /app/client/public/images;
    }
  1. Then in the docker compose file I mounted both this file and a shared volume to the images location for the Librechat api ...
      - type: bind
        source: ./ui/recipes_assistant_chat/nginx.conf
        target: /app/client/nginx.conf
      - shared-data:/app/client/public/images
  1. I also mounted the shared-data to my container running the plugin and ensured any images are saved there

The above means plugin-generated images are available via Librechat nginx's url, which means i…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dividor
Comment options

Answer selected by dividor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
1 participant
Converted from issue

This discussion was converted from issue #2630 on May 07, 2024 11:21.