-
Notifications
You must be signed in to change notification settings - Fork 7
/
compose.yml
73 lines (68 loc) · 1.94 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
services:
fastapi:
image: ghcr.io/etalab-ia/albert-api/app:latest
command: uvicorn app.main:app --host 0.0.0.0 --port 8000
environment:
- CONFIG_FILE=/home/albert/conf/config.yml
restart: always
ports:
- 8000:8000
volumes:
- .:/home/albert/conf
depends_on:
elasticsearch:
condition: service_healthy
redis:
condition: service_healthy
streamlit:
image: ghcr.io/etalab-ia/albert-api/ui:latest
command: streamlit run ui/main.py --server.port=8501 --browser.gatherUsageStats false --theme.base=light --theme.primaryColor=#6a6af4 --server.maxUploadSize=20
restart: always
environment:
- BASE_URL=http://fastapi:8000/v1
ports:
- 8501:8501
redis:
image: redis/redis-stack-server:7.2.0-v11
restart: always
environment:
REDIS_ARGS: --dir /data --requirepass changeme --user username on >password ~* allcommands --save 60 1 --appendonly yes
volumes:
- redis:/data
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
interval: 4s
timeout: 10s
retries: 5
qdrant:
image: qdrant/qdrant:v1.11.5-unprivileged
restart: always
environment:
- QDRANT__SERVICE__API_KEY=changeme
ports:
- 6333:6333
- 6334:6334
volumes:
- qdrant:/qdrant/storage
elastic:
image: docker.elastic.co/elasticsearch/elasticsearch:8.16.0
restart: always
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms2g -Xmx2g"
- ELASTIC_USERNAME=elastic
- ELASTIC_PASSWORD=elastic
- logger.level=WARN
- rootLogger.level=WARN
volumes:
- elasticsearch:/usr/share/elasticsearch/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9200/_cluster/health?wait_for_status=yellow"]
interval: 10s
timeout: 10s
retries: 3
volumes:
elasticsearch:
qdrant:
redis: