-
Notifications
You must be signed in to change notification settings - Fork 878
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/docker setup #68
Merged
Merged
Fix/docker setup #68
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
5a1fa72
(feat) update dockerfiles
cardosofede 252128e
(feat) add host mode to expose the UI when running with docker
cardosofede bd0cda0
(feat) add front end service in the compose file
cardosofede f149d7c
(feat) add placeholders to avoid errors of missing keys
cardosofede 8a3508d
(feat) make configurable the url of the backend
cardosofede 6392462
(feat) add the env variable for the compose file
cardosofede e5a6cac
(feat) add volume to persist assistants and chats
cardosofede cce3fe3
Merge branch 'main' into fix/docker_setup
cardosofede 55a9866
Merge branch 'main' into fix/docker_setup
cardosofede 6543024
(feat) update readme with docker instructions
cardosofede 9b470cd
(feat) change from code to link
cardosofede 0adfc74
(feat) add placeholders for new env variables
cardosofede 7daaa60
(feat) update environment
cardosofede File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
OPENAI_API_KEY=placeholder | ||
ANTHROPIC_API_KEY=placeholder | ||
YDC_API_KEY=placeholder | ||
TAVILY_API_KEY=placeholder | ||
AZURE_OPENAI_DEPLOYMENT_NAME=placeholder | ||
AZURE_OPENAI_API_KEY=placeholder | ||
AZURE_OPENAI_API_BASE=placeholder | ||
AZURE_OPENAI_API_VERSION=placeholder |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Backend Dockerfile | ||
FROM python:3.11 | ||
|
||
# Install system dependencies | ||
RUN apt-get update && apt-get install -y libmagic1 && rm -rf /var/lib/apt/lists/* | ||
|
||
# Set the working directory | ||
WORKDIR /backend | ||
|
||
COPY ./backend . | ||
|
||
RUN rm poetry.lock | ||
|
||
RUN pip install . | ||
|
||
CMD exec uvicorn app.server:app --host 0.0.0.0 --port $PORT |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Frontend Dockerfile | ||
FROM node:16 | ||
|
||
# Set the working directory | ||
WORKDIR /frontend | ||
|
||
# Copy the package.json and yarn.lock | ||
COPY ./frontend/package.json ./ | ||
COPY ./frontend/yarn.lock ./ | ||
|
||
# Install Yarn and dependencies | ||
RUN yarn install | ||
|
||
# Copy the rest of the frontend code | ||
COPY ./frontend . | ||
|
||
# Expose the port the frontend runs on | ||
EXPOSE 5173 | ||
|
||
# Command to start the frontend | ||
CMD ["yarn", "dev"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does this do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The --host option allows the server to be accessed over the network, not just localhost. it's necessary when running via docker.
When running without --host and exposing the port from the container to the local machine we weren't able to see the output. With that argument, the Frontend was exposed.