-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
40 lines (38 loc) · 1.03 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
40 lines (38 loc) · 1.03 KB
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
36
37
38
39
40
version: "3"
services:
web:
command: ["streamlit", "run", "app.py"]
build:
context: .
volumes:
- .:/app
ports:
- "8501:8501"
environment:
ES_URL: http://elasticsearch:9200
OPENAI_API_KEY: $OPENAI_API_KEY
AZURE_OPENAI_API_KEY: $AZURE_OPENAI_API_KEY
AZURE_OPENAI_API_BASE: $AZURE_OPENAI_API_BASE
working_dir: /app
depends_on:
- elasticsearch
cap_add:
- SYS_ADMIN
- SYS_PTRACE
- NET_ADMIN
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.9.0 # https://www.docker.elastic.co/r/elasticsearch/elasticsearch
environment:
- discovery.type=single-node
- xpack.security.enabled=false # security has been disabled, so no login or password is required.
- xpack.security.http.ssl.enabled=false
ports:
- "9200:9200"
healthcheck:
test:
[
"CMD-SHELL",
"curl --silent --fail http://localhost:9200/_cluster/health || exit 1",
]
interval: 10s
retries: 60