-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathdocker-compose.yaml
70 lines (67 loc) · 1.82 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
version: 'Beta'
services:
mysql:
image: mysql:8.0.23
container_name: mysql
environment:
MYSQL_ROOT_PASSWORD: 'root'
MYSQL_DATABASE: 'modelcache'
MYSQL_USER: 'modelcache'
MYSQL_PASSWORD: 'modelcache'
ports:
- 3306:3306
volumes:
- ./data/mysql/db:/var/lib/mysql
- ./data/mysql/my.cnf:/etc/mysql/conf.d/my.cnf
- ./data/mysql/init:/docker-entrypoint-initdb.d
restart: on-failure
networks:
- modelcache
milvus:
image: milvusdb/milvus:v2.5.0-beta
container_name: milvus
security_opt:
- seccomp:unconfined
environment:
ETCD_USE_EMBED: true
ETCD_DATA_DIR: /var/lib/milvus/etcd
ETCD_CONFIG_PATH: /milvus/configs/embedEtcd.yaml
COMMON_STORAGETYPE: local
volumes:
- ./data/milvus/db:/var/lib/milvus
- ./data/milvus/embedEtcd.yaml:/milvus/configs/embedEtcd.yaml
- ./data/milvus/user.yaml:/milvus/configs/user.yaml
ports:
- 19530:19530
- 9091:9091
- 2379:2379
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9091/healthz"]
interval: 30s
start_period: 90s
timeout: 20s
retries: 3
networks:
- modelcache
restart: on-failure
command: milvus run standalone
modelcache:
build:
context: .
dockerfile: Dockerfile
container_name: modelcache
image: modelcache:0.1.0
ports:
- 5000:5000
volumes:
- ./model:/home/user/model
- ./modelcache:/home/user/modelcache
- ./modelcache_mm:/home/user/modelcache_mm
- ./fastapi4modelcache.py:/home/user/fastapi4modelcache.py
networks:
- modelcache
restart: on-failure
command: sh -c "uvicorn fastapi4modelcache:app --reload --reload-dir /home/user --port=5000 --host=0.0.0.0"
networks:
modelcache:
external: true