Skip to content

Instantly share code, notes, and snippets.

@dyusupov
Last active August 10, 2021 05:49
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save dyusupov/d407cb89f8e8644f7a785cb35b62493c to your computer and use it in GitHub Desktop.
Save dyusupov/d407cb89f8e8644f7a785cb35b62493c to your computer and use it in GitHub Desktop.
single-node docker-compose file
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