-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
181 lines (181 loc) · 4.73 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
version: '2.4'
services:
target:
mem_limit: 1g
memswap_limit: 0
privileged: true
ipc: "host"
restart: always
volumes:
- './var:/opt/nedge/var:z'
- './etc:/opt/nedge/etc:z'
- './data:/data:z'
environment:
- CCOW_EMBEDDED=1
- CCOWD_CGROUP_MEMLIM=950000000 # memory high watermark for ccow-daemon, 1GB minimum as of v1.0.2
- CCOW_MEMORY_LIMIT=20000000 # limit UCACHE within CGROUP_MEMLIM, 20mb
- JE_MALLOC_CONF=tcache:false # ask jemalloc to consume less memory
- CCOW_LOG_LEVEL=5
- CCOWD_COREDUMP=0
image: 'edgefs/edgefs:latest'
command:
- target
mgmt:
mem_limit: 100m
depends_on:
- target
ipc: "host"
restart: always
volumes:
- './var:/opt/nedge/var:z'
- './etc:/opt/nedge/etc.target:z'
ports:
- "8881:8881"
- "8080:8080"
environment:
- CCOW_EMBEDDED=1
- CCOW_MEMORY_LIMIT=20000000 # limit UCACHE, 20mb
- JE_MALLOC_CONF=tcache:false # ask jemalloc to consume less memory
- CCOW_LOG_LEVEL=5 # log level, 3 - warnings, 0 - debug
image: 'edgefs/edgefs-restapi:latest'
command:
- mgmt
ui:
mem_limit: 100m
depends_on:
- mgmt
restart: always
ports:
- "3000:3000"
- "3443:3443"
environment:
- API_ENDPOINT=http://mgmt:8080
image: 'edgefs/edgefs-ui:latest'
s301:
mem_limit: 512m
depends_on:
- target
ipc: "host"
restart: always
volumes:
- './var:/opt/nedge/var:z'
- './etc:/opt/nedge/etc.target:z'
ports:
- "9982:9982"
- "9443:9443"
environment:
- CCOW_EMBEDDED=1
- CCOW_MEMORY_LIMIT=20000000 # limit UCACHE, 20mb, however, bigger faster.
- SVC_MEM_LIMIT=250000000 # to create 2 node.js processes i.e. SVC_MEM_LIMIT/SVC_MEM_PER_WORKER
- SVC_MEM_PER_WORKER=100000000 # limit service GC to 100mb
- JE_MALLOC_CONF=tcache:false # ask jemalloc to consume less memory
- CCOW_SVCNAME=s301
- CCOW_LOG_LEVEL=5
- DEBUG=alert,error,info
image: 'edgefs/edgefs-restapi:latest'
command:
- s3
nfs01:
mem_limit: 512m
depends_on:
- target
ipc: "host"
restart: always
volumes:
- './var:/opt/nedge/var:z'
- './etc:/opt/nedge/etc.target:z'
ports:
- "111:111"
- "111:111/udp"
- "662:662"
- "662:662/udp"
- "2049:2049"
- "2049:2049/udp"
- "32803:32803"
- "32803:32803/udp"
- "20048:20048"
- "20048:20048/udp"
- "875:875"
- "875:875/udp"
environment:
- CCOW_EMBEDDED=1
- CCOW_MEMORY_LIMIT=100000000 # limit UCACHE, 100mb, however, bigger faster.
- JE_MALLOC_CONF=tcache:false # ask jemalloc to consume less memory
- CCOW_SVCNAME=nfs01
- CCOW_LOG_LEVEL=5
image: 'edgefs/edgefs-isgw:latest'
command:
- nfs
- -b
- ":49000"
isgw01:
mem_limit: 256m
depends_on:
- target
network_mode: "host"
ipc: "host"
restart: always
volumes:
- './var:/opt/nedge/var:z'
- './etc:/opt/nedge/etc.target:z'
environment:
- CCOW_EMBEDDED=1
- CCOW_MEMORY_LIMIT=20000000 # limit UCACHE, 20mb, however, bigger faster.
- JE_MALLOC_CONF=tcache:false # ask jemalloc to consume less memory
- EFSISGW_DIRECTION=3
- EFSISGW_REPLICATION_TYPE=3
- CCOW_SVCNAME=isgw01
- CCOW_LOG_LEVEL=3
image: 'edgefs/edgefs:latest'
command:
- isgw
- -b
- ":49001"
################ iSCSI Target ###################
# isc01:
# mem_limit: 512m
# depends_on:
# - target
# ipc: "host"
# restart: always
# volumes:
# - './var:/opt/nedge/var:z'
# - './etc:/opt/nedge/etc.target:z'
# ports:
# - "3261:3260"
# environment:
# - TGT_PORTAL_OVERRIDE_ADDR=127.0.0.1 # iSCSI Target IP address on the host
# - CCOW_EMBEDDED=1
# - CCOW_MEMORY_LIMIT=100000000 # limit UCACHE, 100mb, however, bigger faster.
# - JE_MALLOC_CONF=tcache:false # ask jemalloc to consume less memory
# - CCOW_SVCNAME=isc01
# - CCOW_LOG_LEVEL=5
# image: 'edgefs/edgefs:latest'
# command:
# - iscsi
# - -b
# - ":49002"
################ S3X Extensions ###################
# s3x01:
# mem_limit: 512m
# depends_on:
# - target
# ipc: "host"
# restart: always
# volumes:
# - './var:/opt/nedge/var:z'
# - './etc:/opt/nedge/etc.target:z'
# ports:
# - "4000:4000"
# - "4443:4443"
# environment:
# - CCOW_EMBEDDED=1
# - CCOW_MEMORY_LIMIT=100000000 # limit UCACHE, 100mb, however, bigger faster.
# - JE_MALLOC_CONF=tcache:false # ask jemalloc to consume less memory
# - CCOW_SVCNAME=s3x01
# - CCOW_LOG_LEVEL=5
# image: 'edgefs/edgefs:latest'
# command:
# - s3x
# - -b
# - ":49003"