-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
95 lines (95 loc) · 2.04 KB
/
docker-compose.yaml
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
version: '3'
services:
# applications
api:
container_name: api
build: api
restart: always
ports:
- '5001:5001'
- '15001:15001'
depends_on:
- database
- cache
- storage
environment:
SMRITI_WORKER_HOST: worker
SMRITI_CACHE_TYPE: redis
SMRITI_STORAGE_PROVIDER: disk
SMRITI_STORAGE_ENDPOINT: storage:9000
SMRITI_STORAGE_ACCESS_KEY: smritiuser
SMRITI_STORAGE_SECRET_KEY: smritipass
volumes:
- ./storage:/storage:rw
# deploy:
# resources:
# limits:
# cpus: '0.2'
# memory: 256M
worker:
container_name: worker
build: worker
restart: always
ports:
- '5002:5002'
- '15002:15002'
depends_on:
- api
environment:
SMRITI_API_HOST: api
PYTHONUNBUFFERED: '1'
TOKENIZERS_PARALLELISM: false
volumes:
- ./storage:/storage:rw
- ./models:/models:rw
# deploy:
# resources:
# limits:
# cpus: '1.2'
# memory: 3G
# infra services
database:
container_name: database
image: pgvector/pgvector:0.7.2-pg16
restart: always
environment:
POSTGRES_USER: smritiuser
POSTGRES_PASSWORD: smritipass
POSTGRES_DB: smriti
ports:
- '5432:5432'
# deploy:
# resources:
# limits:
# cpus: '0.2'
# memory: 256M
cache:
container_name: cache
image: redis:7.2.5-alpine
restart: always
command: >
--requirepass smritipass
ports:
- '6379:6379'
# deploy:
# resources:
# limits:
# cpus: '0.2'
# memory: 256M
storage:
container_name: storage
image: minio/minio:RELEASE.2024-06-13T22-53-53Z
volumes:
- ./storage:/storage
ports:
- '9000:9000'
environment:
MINIO_ROOT_USER: smritiuser
MINIO_ROOT_PASSWORD: smritipass
command: server --address 0.0.0.0:9000 /storage
restart: always
# deploy:
# resources:
# limits:
# cpus: '0.2'
# memory: 256M