-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
32 lines (31 loc) · 1008 Bytes
/
docker-compose.yml
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
version: '2'
services:
worker0:
image: dbaumgarten/ftodtf
container_name: worker0
command: train --job worker --workers="worker0:8888,worker1:8888" --ps="ps0:7777,ps1:7777" --log_dir /logs
volumes:
- ./log/distributed:/logs
- "./:/data"
environment:
- PYTHONUNBUFFERED=1
worker1:
image: dbaumgarten/ftodtf
container_name: worker1
command: train --job worker --workers="worker0:8888,worker1:8888" --ps="ps0:7777,ps1:7777" --log_dir /foo --index 1
volumes:
- "./:/data"
environment:
- PYTHONUNBUFFERED=1
ps0:
image: dbaumgarten/ftodtf
container_name: ps0
command: train --job ps --workers="worker0:8888,worker1:8888" --ps="ps0:7777,ps1:7777" --log_dir /foo
environment:
- PYTHONUNBUFFERED=1
ps1:
image: dbaumgarten/ftodtf
container_name: ps1
command: train --job ps --workers="worker0:8888,worker1:8888" --ps="ps0:7777,ps1:7777" --log_dir /foo --index 1
environment:
- PYTHONUNBUFFERED=1