Closed leinadsened closed 1 month ago
I tried running this, but I’m encountering an error.
In the case of Docker Compose, we already know the backendUrl. How should we handle this?
We don’t need an environment variable in this case, but it shouldn’t result in a failure either.
@agberoz have a look
I've found the problem, I had an older version of the ui dockerfile:
To address the issue, I could add .env to frontend volumes, would that be a good fix?
@leinadsened Set the environment variable as a build argument in the Dockerfile and pass it through the Docker Compose file.
Hey @sethumadhavan-k I've updated both files, please let me know what you think. I might misunderstand something, but shouldn't "VITE_API_URL=http://backend:8001" be added to the sample .env file?
Add Docker Compose for running front- and back-end After running "docker-compose up --build" the app should be available on localhost:8080