Add more things for SeaweedFS
This commit is contained in:
parent
6614a912ff
commit
f786e0370d
|
@ -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
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue