-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
74 lines (69 loc) · 1.54 KB
/
docker-compose.yml
File metadata and controls
74 lines (69 loc) · 1.54 KB
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
services:
# FL-Go Aggregator
aggregator:
build: .
container_name: openfl-aggregator
ports:
- "50061:50061"
volumes:
- ./workspace:/app/workspace
working_dir: /app/workspace
command: ["../fx", "aggregator", "start"]
environment:
- PYTHONUNBUFFERED=1
networks:
- openfl-network
# FL-Go Collaborator 1
collaborator1:
build: .
container_name: openfl-collaborator1
ports:
- "50062:50062"
volumes:
- ./workspace:/app/workspace
working_dir: /app/workspace
command: ["../fx", "collaborator", "start", "collaborator1"]
environment:
- PYTHONUNBUFFERED=1
depends_on:
- aggregator
networks:
- openfl-network
# FL-Go Collaborator 2
collaborator2:
build: .
container_name: openfl-collaborator2
ports:
- "50063:50063"
volumes:
- ./workspace:/app/workspace
working_dir: /app/workspace
command: ["../fx", "collaborator", "start", "collaborator2"]
environment:
- PYTHONUNBUFFERED=1
depends_on:
- aggregator
networks:
- openfl-network
# Development shell for manual testing
dev-shell:
build: .
container_name: openfl-dev-shell
ports:
- "50064:50064"
volumes:
- ./workspace:/app/workspace
- .:/app/source
working_dir: /app/workspace
command: ["/bin/sh"]
stdin_open: true
tty: true
environment:
- PYTHONUNBUFFERED=1
networks:
- openfl-network
networks:
openfl-network:
driver: bridge
volumes:
workspace-data: