-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (44 loc) · 996 Bytes
/
docker-compose.yml
File metadata and controls
47 lines (44 loc) · 996 Bytes
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
version: '3.8'
services:
master:
build:
context: .
dockerfile: Dockerfile.master
container_name: dist-exec-master
ports:
- "50051:50051"
environment:
- MASTER_ADDRESS=:50051
- LOG_LEVEL=debug
- MAX_CONCURRENT_JOBS=10000
- HEARTBEAT_TIMEOUT_SECONDS=15
- SCALING_ENABLED=false
healthcheck:
test: ["CMD", "/bin/grpc_health_probe", "-addr=:50051"]
interval: 10s
timeout: 5s
retries: 3
networks:
- dist-exec
worker:
build:
context: .
dockerfile: Dockerfile.worker
environment:
- MASTER_ADDRESS=master:50051
- WORKER_ADDRESS=:50052
- MAX_CONCURRENT_TASKS=10
- LOG_LEVEL=debug
depends_on:
master:
condition: service_healthy
healthcheck:
test: ["CMD", "/bin/grpc_health_probe", "-addr=:50052"]
interval: 10s
timeout: 5s
retries: 3
networks:
- dist-exec
networks:
dist-exec:
driver: bridge