You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried to integrate llm-graph-builder in my own docker-compose.yml and for that built and pushed the frontend and backend docker images to docker hub so that it does not have to be built on startup.
Doing that I have realized that at least VITE_BACKEND_API_URL and VITE_REACT_APP_SOURCES are only valid and used at build-time of the docker image and cannot be overwritten at runtime using environment variables in the docker-compose.yml.
This makes it difficult to provide the frontend application as a reusable docker image. I'm not sure why this is the case, I'm more of a backend guy and have only limited web app knowledge. Would it be possible to have the environment variables provided at runtime when starting up the docker container? Either directly by using the env variables at runtime or by a configuration file and having that populated dynamically by env variables (if it's the later, then I could offer help on the docker side and how to dynamically create the config file).
The text was updated successfully, but these errors were encountered:
@jexp thanks for your answer. I have now checked the code with help of ChatGPT to understand what's happening and I understand a bit better how the frontend handles the variables and provide them at built-time.
The reason for my question is that I'm in the process of adding support for llm-graph-builder to the Platys Modern Data Platform, an open-source toolkit which generates customizable docker-compse.yml environments for PoC's and trainings. I'm using a config.yml file to control the behavior of the docker containers and I don't have the concept of building docker images at startup time. Of course I could make an exception for llm-graph-builder, but then I would have to fetch the frontend code when generating the docker-compose.yml. Not all of the services I support so far, can be configured by environment variables, but all of them usually provide a way to specify a configuration file at runtime.
But of course I understand that having the front-end as a generic image is not your top-priority. Will see what I can do, it's already good to know that it is the expected behavior. Think it would be clearer, if the frontend-specific environment variables are removed from the https://github.com/neo4j-labs/llm-graph-builder/blob/main/example.env file in project root.
I have tried to integrate llm-graph-builder in my own
docker-compose.yml
and for that built and pushed the frontend and backend docker images to docker hub so that it does not have to be built on startup.Doing that I have realized that at least
VITE_BACKEND_API_URL
andVITE_REACT_APP_SOURCES
are only valid and used at build-time of the docker image and cannot be overwritten at runtime using environment variables in thedocker-compose.yml
.This makes it difficult to provide the frontend application as a reusable docker image. I'm not sure why this is the case, I'm more of a backend guy and have only limited web app knowledge. Would it be possible to have the environment variables provided at runtime when starting up the docker container? Either directly by using the env variables at runtime or by a configuration file and having that populated dynamically by env variables (if it's the later, then I could offer help on the docker side and how to dynamically create the config file).
The text was updated successfully, but these errors were encountered: