-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathdocker-compose.ray.yaml
55 lines (53 loc) · 1.2 KB
/
docker-compose.ray.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
services:
ray-head:
build:
context: src/ray
dockerfile: Dockerfile
user: root
ports:
- "8265:8265"
- "10001:10001"
- "8000:8000"
volumes:
- /tmp/ray:/tmp/ray
command: >
bash -c "ray start --head
--dashboard-port=8265
--dashboard-host=0.0.0.0
--port=6379
--redis-password=your_password
--block
--temp-dir=/tmp/ray"
environment:
- RAY_GRAFANA_HOST=http://grafana:3000
- RAY_GRAFANA_IFRAME_HOST=http://localhost:3009
- RAY_PROMETHEUS_HOST=http://prometheus:9090
- RAY_PROMETHEUS_NAME=Prometheus
shm_size: 2g
deploy:
resources:
limits:
cpus: "0.5"
memory: "2g"
networks:
- easymlops_network
ray-worker:
build:
context: src/ray
dockerfile: Dockerfile
depends_on:
- ray-head
command: bash -c "ray start --address=ray-head:6379 --redis-password=your_password --num-cpus=10 --block"
shm_size: 2g
deploy:
mode: replicated
replicas: 3
resources:
limits:
cpus: "4"
memory: "4g"
networks:
- easymlops_network
networks:
easymlops_network:
external: true