Hey everyone! I'm trying to set up a project with a UI built in Vue and a chatbot I created using Python, Chainlit, and LangGraph. I found the Vue UI on GitHub and it's working well in Docker. I also set up an API with FastAPI and created a Docker image for both the chatbot and the API. However, when I run `docker compose up`, I'm unable to sign in to the chatbot. I've checked that everything works fine when running locally without Docker. Any advice on what could be causing the sign-in issue with the chatbot when it's running in Docker? Here's a peek at the Docker configurations if that helps:
2 Answers
Make sure to check the console log and network requests in your browser. The issue might be that your Vue frontend is trying to connect to localhost, which refers to the container's localhost when running in Docker. You may need to change the API endpoints accordingly.
It looks like your frontend and chatbot are set up as separate Docker images. In your Docker Compose file, it only shows the frontend services. Also, remember that localhost refers to the container itself, not your local machine. If they are in separate containers, you'll need to adjust your environment variables to point to the correct service names.

Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically