File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
example-apps/chatbot-rag-app Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -51,14 +51,13 @@ ease while locally is advised if you are making changes to the application.
5151### Run with docker
5252
5353Docker compose is the easiest way, as you get one-step to:
54- * build the [ frontend] ( frontend )
5554* ingest data into elasticsearch
5655* run the app, which listens on http://localhost:4000
5756
5857** Double-check you have a ` .env ` file with all your variables set first!**
5958
6059``` bash
61- docker compose up --build --force-recreate
60+ docker compose up --pull always --force-recreate
6261```
6362
6463* Note* : First time creating the index can fail on timeout. Wait a few minutes
@@ -186,6 +185,14 @@ passages. Modify this script to index your own data.
186185
187186See [ Langchain documentation] [ loader-docs ] for more ways to load documents.
188187
188+ ### Building from source with docker
189+
190+ To build the app from source instead of using published images, pass the ` --build `
191+ flag to Docker Compose.
192+
193+ ``` bash
194+ docker compose up --build --force-recreate
195+ ```
189196
190197---
191198[ loader-docs ] : https://python.langchain.com/docs/how_to/#document-loaders
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ name: chatbot-rag-app
22
33services :
44 ingest-data :
5+ image : ghcr.io/elastic/elasticsearch-labs/chatbot-rag-app
56 build :
67 context : .
78 container_name : ingest-data
@@ -22,6 +23,7 @@ services:
2223 ingest-data :
2324 condition : service_completed_successfully
2425 container_name : api-frontend
26+ image : ghcr.io/elastic/elasticsearch-labs/chatbot-rag-app
2527 build :
2628 context : .
2729 env_file :
You can’t perform that action at this time.
0 commit comments