-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
executable file
·128 lines (117 loc) · 3.61 KB
/
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
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
# Copyright 2019-2022 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.7'
services:
mysql:
image: "mysql:8.0.28"
container_name: "mysql"
volumes:
- $PWD/mysql-data/:/var/lib/mysql:rw
- $PWD/mysql_init/:/docker-entrypoint-initdb.d/:rw
- /etc/localtime:/etc/localtime:ro
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
network_mode: "host"
privileged: true
zookeeper:
image: "bitnami/zookeeper:latest"
container_name: "zookeeper"
user: "root"
volumes:
- $PWD/zk-data/:/bitnami/zookeeper/data/
- /etc/localtime:/etc/localtime:ro
environment:
ALLOW_ANONYMOUS_LOGIN: "yes"
network_mode: "host"
privileged: true
redis:
image: "redis:6.0.8"
container_name: "redis"
user: "root"
environment:
ALLOW_ANONYMOUS_LOGIN: "yes"
network_mode: "host"
privileged: true
command: ["redis-server"]
rollsite:
image: "ccr.ccs.tencentyun.com/seceum/seceum-fl:3.2"
container_name: "rollsite"
volumes:
- $PWD:/data/projects/fate/
- /etc/localtime:/etc/localtime:ro
network_mode: "host"
privileged: true
command: ["./eggroll/bin/start.sh", "rollsite"]
nodemanager:
image: "ccr.ccs.tencentyun.com/seceum/seceum-fl:3.2"
container_name: "nodemanager"
volumes:
- $PWD:/data/projects/fate/
- /etc/localtime:/etc/localtime:ro
network_mode: "host"
privileged: true
command: ["./eggroll/bin/start.sh", "nodemanager"]
clustermanager:
image: "ccr.ccs.tencentyun.com/seceum/seceum-fl:3.2"
container_name: "clustermanager"
volumes:
- $PWD:/data/projects/fate/
- /etc/localtime:/etc/localtime:ro
network_mode: "host"
privileged: true
command: ["./eggroll/bin/start.sh", "clustermanager"]
fateboard:
image: "ccr.ccs.tencentyun.com/seceum/seceum-fl:3.2"
container_name: "fateboard"
volumes:
- $PWD:/data/projects/fate/
- /etc/localtime:/etc/localtime:ro
network_mode: "host"
privileged: true
command: ["bash", "./fateboard/bin/service.sh", "start"]
serving:
image: "ccr.ccs.tencentyun.com/seceum/seceum-fl:3.2"
container_name: "serving"
volumes:
- $PWD:/data/projects/fate/
- /etc/localtime:/etc/localtime:ro
network_mode: "host"
privileged: true
command: ["bash","-c", "bin/serving_start.sh"]
depends_on:
- zookeeper
fateflow:
image: "ccr.ccs.tencentyun.com/seceum/seceum-fl:3.2"
container_name: "fate_flow_server"
volumes:
- $PWD:/data/projects/fate/
- /etc/localtime:/etc/localtime:ro
network_mode: "host"
privileged: true
command: ["/data/projects/python/venv/bin/python", "fateflow/python/fate_flow/fate_flow_server.py"]
depends_on:
- zookeeper
- mysql
- rollsite
- clustermanager
- nodemanager
seceum-web:
image: "ccr.ccs.tencentyun.com/seceum/seceum-fl-web:3.2"
container_name: "seceum-web"
volumes:
- $PWD/conf/app.config.js:/data/projects/studio/app.config.js
- /etc/localtime:/etc/localtime:ro
network_mode: "host"
privileged: true
depends_on:
- fateflow