File size: 1,805 Bytes
c2649ec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
services:
  ray-head:
    build:
      context: .
      dockerfile: Dockerfile_ray
    platform: linux/amd64
    container_name: ray-head
    hostname: ray-head
    ports:
      - "8265:8265" # Ray Dashboard
      - "10001:10001" # Ray Client Server
      - "6379:6379" # Redis port for Ray GCS
    command: >
      ray start --head  --dashboard-host=0.0.0.0  --dashboard-port=8265 --port=6379 --redis-password="" --object-manager-port=8076 --node-manager-port=8077 --min-worker-port=10002 --max-worker-port=19999 --block
    env_file:
      - .env
    networks:
      - ray-network
    restart: unless-stopped
    deploy:
      resources:
        limits:
          memory: 8G
        reservations:
          memory: 8G

  ray-worker:
    build:
      context: .
      dockerfile: Dockerfile_ray
    platform: linux/amd64
    container_name: ray-worker
    hostname: ray-worker
    depends_on:
      - ray-head
    command: >
      ray start  --address=ray-head:6379 --object-manager-port=8076 --node-manager-port=8077 --min-worker-port=10002 --max-worker-port=19999 --block
    env_file:
      - .env
    networks:
      - ray-network
    restart: unless-stopped
    deploy:
      resources:
        limits:
          memory: 4G
        reservations:
          memory: 4G

  aworld-web-server:
    build:
      context: .
      dockerfile: Dockerfile_ray
    platform: linux/amd64
    container_name: aworld-api-server
    hostname: aworld-api-server
    depends_on:
      - ray-head
    command: aworld web --port 8000
    env_file:
      - .env
    networks:
      - ray-network
    restart: unless-stopped
    deploy:
      resources:
        limits:
          memory: 4G
        reservations:
          memory: 4G

networks:
  ray-network:
    driver: bridge

volumes:
  workspace:
    driver: local