Add more things for SeaweedFS

This commit is contained in:
Scott Wallace 2022-04-05 09:12:49 +01:00
parent 6614a912ff
commit f786e0370d
Signed by: scott
GPG key ID: AA742FDC5AFE2A72
3 changed files with 7 additions and 0 deletions

View file

@ -18,6 +18,9 @@ RUN go get github.com/chrislusf/seaweedfs/weed
# Start from a clean image # Start from a clean image
FROM alpine:3.15 FROM alpine:3.15
# Install some required tools
RUN apk add fuse
RUN mkdir /app RUN mkdir /app
WORKDIR /app WORKDIR /app

View file

@ -9,6 +9,9 @@ services:
- /path/to/infranet/filestore:/storage - /path/to/infranet/filestore:/storage
cap_add: cap_add:
- NET_ADMIN - NET_ADMIN
- SYS_ADMIN
security_opt:
- apparmor:unconfined
devices: devices:
- /dev/net/tun - /dev/net/tun
environment: environment:

View file

@ -8,6 +8,7 @@ if test "${LIGHTHOUSE}" == "true"; then
else else
${BIN_DIR}/weed volume -dir=/storage -mserver=${SEAWEEDFS_MASTERS} & ${BIN_DIR}/weed volume -dir=/storage -mserver=${SEAWEEDFS_MASTERS} &
${BIN_DIR}/weed filer -master=${SEAWEEDFS_MASTERS} & ${BIN_DIR}/weed filer -master=${SEAWEEDFS_MASTERS} &
${BIN_DIR}/weed filer.remote.sync -dir=/ &
fi fi
wait wait