Issues Signing In to Chatbot in Docker Setup

0
14
Asked By CuriousCoder42 On

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

Answered By TechSavant99 On

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.

Answered By DevGuru88 On

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.