forked from etalab-ia/albert-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
60 lines (55 loc) · 1.34 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
version: "3.8"
services:
fastapi:
image: ghcr.io/etalab-ia/albert-api/fastapi:latest
command: uvicorn app.main:app --host 0.0.0.0 --port 8000
build:
context: ./app
dockerfile: Dockerfile
restart: always
environment:
- CONFIG_FILE=/home/albert/conf/config.yml
ports:
- 8000:8000
volumes:
- .:/home/albert/conf # a config.yml file should be in this folder
qdrant:
image: qdrant/qdrant:v1.9.7-unprivileged
restart: always
environment:
- QDRANT__SERVICE__API_KEY=changeme
ports:
- 6333:6333
- 6334:6334
volumes:
- qdrant:/qdrant/storage
minio:
image: minio/minio:latest
restart: always
command: server /data --console-address ":9001"
environment:
- MINIO_ROOT_USER=minio
- MINIO_ROOT_PASSWORD=changeme
ports:
- 9000:9000
- 9001:9001
volumes:
- minio:/data
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
ports:
- 6379:6379
volumes:
- redis:/data
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
interval: 4s
timeout: 10s
retries: 5
volumes:
qdrant:
minio:
redis: