-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathcompose.yml
50 lines (46 loc) · 1.4 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
services:
api:
image: ghcr.io/etalab-ia/albert-api/app:latest
command: gunicorn app.main:app --workers 1 --worker-connections 1000 --timeout 30 --worker-class uvicorn.workers.UvicornWorker
environment:
- PORT=8000
- CONFIG_FILE=/home/albert/conf/config.yml
restart: always
ports:
- 8000:8000
volumes:
- ./config.example.yml:/home/albert/conf/config.yml:ro
depends_on:
redis:
condition: service_healthy
ui:
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://api:8000/v1
- DOCUMENTS_EMBEDDINGS_MODEL=
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
volumes:
- qdrant:/qdrant/storage
volumes:
qdrant:
redis: