mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-30 23:29:02 +08:00
weed server: mkdir first, and set the master ip address
fix https://github.com/chrislusf/seaweedfs/issues/885
This commit is contained in:
parent
023f447d56
commit
a4e8aa98a0
@ -22,10 +22,11 @@ EXPOSE 9333
|
|||||||
# s3 server http port
|
# s3 server http port
|
||||||
EXPOSE 8333
|
EXPOSE 8333
|
||||||
|
|
||||||
|
RUN mkdir -p /data/filerdb
|
||||||
|
|
||||||
VOLUME /data
|
VOLUME /data
|
||||||
|
|
||||||
COPY filer.toml /etc/seaweedfs/filer.toml
|
COPY filer.toml /etc/seaweedfs/filer.toml
|
||||||
RUN mkdir /data/filerdb
|
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
RUN chmod +x /entrypoint.sh
|
RUN chmod +x /entrypoint.sh
|
||||||
|
|
||||||
|
@ -115,6 +115,7 @@ func runServer(cmd *Command, args []string) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
master := *serverIp + ":" + strconv.Itoa(*masterPort)
|
master := *serverIp + ":" + strconv.Itoa(*masterPort)
|
||||||
|
filerOptions.masters = &master
|
||||||
filerOptions.ip = serverIp
|
filerOptions.ip = serverIp
|
||||||
serverOptions.v.ip = serverIp
|
serverOptions.v.ip = serverIp
|
||||||
serverOptions.v.bindIp = serverBindIp
|
serverOptions.v.bindIp = serverBindIp
|
||||||
|
Loading…
Reference in New Issue
Block a user