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.
51
51
### Run with docker
52
52
53
53
Docker compose is the easiest way, as you get one-step to:
54
- * build the [ frontend] ( frontend )
55
54
* ingest data into elasticsearch
56
55
* run the app, which listens on http://localhost:4000
57
56
58
57
** Double-check you have a ` .env ` file with all your variables set first!**
59
58
60
59
``` bash
61
- docker compose up --build --force-recreate
60
+ docker compose up --pull always --force-recreate
62
61
```
63
62
64
63
* 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.
186
185
187
186
See [ Langchain documentation] [ loader-docs ] for more ways to load documents.
188
187
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
+ ```
189
196
190
197
---
191
198
[ 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
2
2
3
3
services :
4
4
ingest-data :
5
+ image : ghcr.io/elastic/elasticsearch-labs/chatbot-rag-app
5
6
build :
6
7
context : .
7
8
container_name : ingest-data
@@ -22,6 +23,7 @@ services:
22
23
ingest-data :
23
24
condition : service_completed_successfully
24
25
container_name : api-frontend
26
+ image : ghcr.io/elastic/elasticsearch-labs/chatbot-rag-app
25
27
build :
26
28
context : .
27
29
env_file :
You can’t perform that action at this time.
0 commit comments