-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-eggroll.yml
140 lines (131 loc) · 4.56 KB
/
docker-compose-eggroll.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
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
# Copyright 2019-2020 VMware, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
version: '3'
networks:
fate-network:
ipam:
config:
- subnet: 192.167.0.0/16
volumes:
fate_flow_logs:
download_dir:
shared_dir_examples:
driver: local
driver_opts:
type: none
o: bind
device: {/path/to/host/dir}/examples
shared_dir_federatedml:
driver: local
driver_opts:
type: none
o: bind
device: {/path/to/host/dir}/federatedml
shared_dir_data:
driver: local
driver_opts:
type: none
o: bind
device: {/path/to/host/dir}/data
services:
rollsite:
image: "federatedai/eggroll:${TAG}"
restart: always
ports:
- "9370:9370"
environment:
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION: python
volumes:
- ./confs/eggroll/conf:/data/projects/fate/eggroll/conf
networks:
- fate-network
command: ["bash", "-c", "java -Dlog4j.configurationFile=$${EGGROLL_HOME}/conf/log4j2.properties -cp $${EGGROLL_HOME}/lib/*:$${EGGROLL_HOME}/conf/ com.webank.eggroll.rollsite.EggSiteBootstrap -c $${EGGROLL_HOME}/conf/eggroll.properties"]
fateboard:
image: "federatedai/fateboard:${TAG}"
restart: always
ports:
- "8080:8080"
volumes:
- ./confs/fateboard/conf:/data/projects/fate/fateboard/conf
- fate_flow_logs:/data/projects/fate/fateflow/logs
networks:
- fate-network
depends_on:
- python
clustermanager:
image: "federatedai/eggroll:${TAG}"
restart: always
expose:
- 4670
volumes:
- ./confs/eggroll/conf:/data/projects/fate/eggroll/conf
environment:
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION: python
networks:
- fate-network
command: ["bash", "-c", "java -Dlog4j.configurationFile=$${EGGROLL_HOME}/conf/log4j2.properties -cp $${EGGROLL_HOME}/lib/*: com.webank.eggroll.core.Bootstrap --bootstraps com.webank.eggroll.core.resourcemanager.ClusterManagerBootstrap -c $${EGGROLL_HOME}/conf/eggroll.properties -p 4670 -s 'EGGROLL_DEAMON'"]
nodemanager:
image: "federatedai/eggroll:${TAG}"
restart: always
expose:
- 4671
volumes:
- ./confs/eggroll/conf:/data/projects/fate/eggroll/conf
- ./confs/fate_flow/conf/service_conf.yaml:/data/projects/fate/fate/conf/service_conf.yaml
- ./shared_dir/data/nodemanager:/data/projects/fate/eggroll/data
networks:
- fate-network
command: ["bash", "-c", "java -Dlog4j.configurationFile=$${EGGROLL_HOME}/conf/log4j2.properties -cp $${EGGROLL_HOME}/lib/*: com.webank.eggroll.core.Bootstrap --bootstraps com.webank.eggroll.core.resourcemanager.NodeManagerBootstrap -c $${EGGROLL_HOME}/conf/eggroll.properties -p 4671 -s 'EGGROLL_DEAMON'"]
python:
image: "federatedai/python:${TAG}"
environment:
PYTHONPATH: "$PYTHONPATH:/data/projects/fate/fate/python:/data/projects/fate/eggroll/python:/data/projects/fate/fateflow/python:/data/projects/fate/fate/python/fate_client"
FATE_PROJECT_BASE: "/data/projects/fate"
ports:
- "9360:9360"
- "9380:9380"
restart: always
volumes:
- shared_dir_federatedml:/data/projects/fate/fate/python/federatedml
- shared_dir_examples:/data/projects/fate/examples
- download_dir:/data/projects/fate/python/download_dir
- ./confs/fate_flow/conf:/data/projects/fate/conf
- ./confs/eggroll/conf:/data/projects/fate/eggroll/conf
- fate_flow_logs:/data/projects/fate/fateflow/logs
- ./shared_dir/data/model_local_cache:/data/projects/fate/fateflow/model_local_cache
depends_on:
- mysql
- rollsite
- clustermanager
- nodemanager
networks:
fate-network:
ipv4_address: 192.167.0.100
command:
- "/bin/bash"
- "-c"
- |
set -x
sleep 5 && python fateflow/python/fate_flow/fate_flow_server.py
mysql:
image: "mysql:8"
expose:
- 3306
volumes:
- ./confs/mysql/init:/docker-entrypoint-initdb.d/
- ./shared_dir/data/mysql:/var/lib/mysql
restart: always
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
networks:
- fate-network