mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
docker filer default to /data/filerdb
This commit is contained in:
parent
cf67cf29a1
commit
3078cb96a9
|
@ -1,8 +1,21 @@
|
|||
# Docker
|
||||
|
||||
|
||||
## Try it out
|
||||
|
||||
```bash
|
||||
|
||||
wget https://github.com/chrislusf/seaweedfs/blob/master/docker/docker-compose.yml
|
||||
|
||||
docker-compose -f docker-compose.yml up
|
||||
|
||||
```
|
||||
|
||||
## Development
|
||||
|
||||
```
|
||||
```bash
|
||||
cd $GOPATH/src/github.com/chrislusf/seaweedfs/docker
|
||||
|
||||
docker build - < Dockerfile.go_build
|
||||
|
||||
docker-compose -f docker-compose.yml up
|
||||
|
|
|
@ -29,6 +29,7 @@ case "$1" in
|
|||
;;
|
||||
|
||||
'filer')
|
||||
exec mkdir /data/filerdb
|
||||
ARGS="-ip `hostname -i` "
|
||||
if [ -n "$MASTER_PORT_9333_TCP_ADDR" ] ; then
|
||||
ARGS="$ARGS -master=$MASTER_PORT_9333_TCP_ADDR:$MASTER_PORT_9333_TCP_PORT"
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
[leveldb]
|
||||
enabled = true
|
||||
dir = "."
|
||||
dir = "/data/filerdb"
|
||||
|
|
Loading…
Reference in a new issue