forked from elastic/elasticsearch-labs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
35 lines (33 loc) · 1.07 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: chatbot-rag-app
services:
create-index:
image: ghcr.io/elastic/elasticsearch-labs/chatbot-rag-app
build:
context: .
container_name: create-index
restart: 'no' # no need to re-ingest on successive runs
env_file:
- .env
command: flask create-index
volumes:
# VertexAI uses a file for GOOGLE_APPLICATION_CREDENTIALS, not an API key
- ${HOME}/.config/gcloud:/root/.config/gcloud
extra_hosts: # send localhost traffic to the docker host, e.g. your laptop
- "localhost:host-gateway"
api-frontend:
depends_on:
create-index:
condition: service_completed_successfully
container_name: api-frontend
image: ghcr.io/elastic/elasticsearch-labs/chatbot-rag-app
build:
context: .
env_file:
- .env
volumes:
# VertexAI uses a file for GOOGLE_APPLICATION_CREDENTIALS, not an API key
- ${HOME}/.config/gcloud:/root/.config/gcloud
ports:
- "4000:4000"
extra_hosts: # send localhost traffic to the docker host, e.g. your laptop
- "localhost:host-gateway"