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
|
# 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
|
||||||
|
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue