Skip to content

Commit 5fbff24

Browse files
committed
COrrect config url endpoint
1 parent a9fcf67 commit 5fbff24

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

docker-compose-ghimages.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ services:
2121
environment:
2222
- SERVICE_TOKEN=myllservicetoken2024
2323
- RUNNING_IN_DOCKER=true
24+
- DOCKER_API_URL=http://host.docker.internal:8000/api/v1/chat
2425

docker-compose.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ services:
2222
- backend
2323
environment:
2424
- SERVICE_TOKEN=myllservicetoken2024
25-
- RUNNING_IN_DOCKER=true
25+
- RUNNING_IN_DOCKER=true
26+
- DOCKER_API_URL=http://host.docker.internal:8000/api/v1/chat

frontend/Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ RUN pip install --no-cache-dir -r requirements.txt
1414
# Copy .env file into the container at /app
1515
COPY .env /app
1616

17+
ENV RUNNING_IN_DOCKER=true
18+
ENV SERVICE_TOKEN=myllservicetoken2024
19+
1720
# Make port 8501 available to the world outside this container
1821
EXPOSE 8501
1922

20-
ENV RUNNING_IN_DOCKER=true
2123

2224
# Run app.py when the container launches
2325
CMD ["streamlit", "run", "main.py", "--server.port=8501", "--server.address=0.0.0.0"]

0 commit comments

Comments
 (0)