diff --git a/Dockerfile b/Dockerfile index c2d84d3..8976751 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,6 +18,9 @@ RUN go get github.com/chrislusf/seaweedfs/weed # Start from a clean image FROM alpine:3.15 +# Install some required tools +RUN apk add fuse + RUN mkdir /app WORKDIR /app diff --git a/docker-compose-node.yaml b/docker-compose-node.yaml index a9c8eaa..198b377 100644 --- a/docker-compose-node.yaml +++ b/docker-compose-node.yaml @@ -9,6 +9,9 @@ services: - /path/to/infranet/filestore:/storage cap_add: - NET_ADMIN + - SYS_ADMIN + security_opt: + - apparmor:unconfined devices: - /dev/net/tun environment: diff --git a/seaweedfs-start.sh b/seaweedfs-start.sh index 261f3d7..da06f89 100755 --- a/seaweedfs-start.sh +++ b/seaweedfs-start.sh @@ -8,6 +8,7 @@ if test "${LIGHTHOUSE}" == "true"; then else ${BIN_DIR}/weed volume -dir=/storage -mserver=${SEAWEEDFS_MASTERS} & ${BIN_DIR}/weed filer -master=${SEAWEEDFS_MASTERS} & + ${BIN_DIR}/weed filer.remote.sync -dir=/ & fi wait