-
-
Save qqshow/d7ff025107e9cf733757dad696f5e311 to your computer and use it in GitHub Desktop.
single-node docker-compose file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2.4' | |
services: | |
target: | |
privileged: true | |
network_mode: "host" | |
ipc: "host" | |
restart: always | |
volumes: | |
- '/etc/localtime:/etc/localtime:ro' | |
- '/edgefs/var/run:/opt/nedge/var/run:z' | |
- '/edgefs/var/log:/opt/nedge/var/log:z' | |
- '/edgefs/var/cores:/opt/nedge/var/cores:z' | |
- '/edgefs/etc:/opt/nedge/etc:z' | |
- '/edgefs/data:/data:z' | |
- '/run/udev:/run/udev:ro' | |
- '/sys/:/sys' | |
- '/dev/:/dev' | |
environment: | |
- CCOWD_CGROUP_MEMLIM=16000000000 # memory high watermark for ccow-daemon | |
- CCOW_MEMORY_LIMIT=2000000000 # limit UCACHE within CGROUP_MEMLIM | |
- CCOW_LOG_LEVEL=5 | |
- CCOWD_COREDUMP=0 | |
image: 'edgefs/edgefs:latest' | |
command: | |
- target | |
mgmt: | |
depends_on: | |
- target | |
network_mode: "host" | |
ipc: "host" | |
restart: always | |
volumes: | |
- '/etc/localtime:/etc/localtime:ro' | |
- '/edgefs/var/run:/opt/nedge/var/run:z' | |
- '/edgefs/var/log:/opt/nedge/var/log:z' | |
- '/edgefs/var/cores:/opt/nedge/var/cores:z' | |
- '/edgefs/etc:/opt/nedge/etc:z' | |
image: 'edgefs/edgefs-restapi:latest' | |
command: | |
- mgmt | |
ui: | |
depends_on: | |
- mgmt | |
network_mode: "host" | |
restart: always | |
ports: | |
- 3000 | |
- 3443 | |
environment: | |
- API_ENDPOINT=http://0.0.0.0:8080 | |
volumes: | |
- '/etc/localtime:/etc/localtime:ro' | |
image: 'edgefs/edgefs-ui:latest' | |
s301: | |
depends_on: | |
- target | |
network_mode: "host" | |
ipc: "host" | |
restart: always | |
volumes: | |
- '/etc/localtime:/etc/localtime:ro' | |
- '/edgefs/var/run:/opt/nedge/var/run:z' | |
- '/edgefs/var/log:/opt/nedge/var/log:z' | |
- '/edgefs/var/cores:/opt/nedge/var/cores:z' | |
- '/edgefs/etc:/opt/nedge/etc:z' | |
environment: | |
- CCOW_MEMORY_LIMIT=1000000000 | |
- CCOW_SVCNAME=s301 | |
- CCOW_LOG_LEVEL=5 | |
- DEBUG=alert,error,info | |
image: 'edgefs/edgefs-restapi:latest' | |
command: | |
- s3 | |
nfs01: | |
depends_on: | |
- target | |
network_mode: "host" | |
ipc: "host" | |
restart: always | |
volumes: | |
- '/etc/localtime:/etc/localtime:ro' | |
- '/edgefs/var/run:/opt/nedge/var/run:z' | |
- '/edgefs/var/log:/opt/nedge/var/log:z' | |
- '/edgefs/var/cores:/opt/nedge/var/cores:z' | |
- '/edgefs/etc:/opt/nedge/etc:z' | |
environment: | |
- CCOW_SVCNAME=nfs01 | |
- CCOW_LOG_LEVEL=5 | |
image: 'edgefs/edgefs:latest' | |
command: | |
- nfs | |
- -b | |
- ":49000" | |
isgw01: | |
depends_on: | |
- target | |
network_mode: "host" | |
ipc: "host" | |
restart: always | |
volumes: | |
- '/etc/localtime:/etc/localtime:ro' | |
- '/edgefs/var/run:/opt/nedge/var/run:z' | |
- '/edgefs/var/log:/opt/nedge/var/log:z' | |
- '/edgefs/var/cores:/opt/nedge/var/cores:z' | |
- '/edgefs/etc:/opt/nedge/etc:z' | |
environment: | |
- EFSISGW_DIRECTION=3 | |
- EFSISGW_REPLICATION_TYPE=3 | |
- CCOW_SVCNAME=isgw01 | |
- CCOW_LOG_LEVEL=3 | |
image: 'edgefs/edgefs-isgw:latest' | |
command: | |
- isgw | |
- -b | |
- ":49001" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment