mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
clean up
This commit is contained in:
parent
260b038441
commit
68028ee876
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
||||||
wget https://github.com/chrislusf/seaweedfs/blob/master/docker/docker-compose.yml
|
wget https://raw.githubusercontent.com/chrislusf/seaweedfs/master/docker/docker-compose.yml
|
||||||
|
|
||||||
docker-compose -f docker-compose.yml up
|
docker-compose -f docker-compose.yml up
|
||||||
|
|
||||||
|
|
|
@ -6,35 +6,25 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- 9333:9333
|
- 9333:9333
|
||||||
command: "master"
|
command: "master"
|
||||||
networks:
|
|
||||||
default:
|
|
||||||
aliases:
|
|
||||||
- seaweed_master
|
|
||||||
volume:
|
volume:
|
||||||
image: chrislusf/seaweedfs # use a remote image
|
image: chrislusf/seaweedfs # use a remote image
|
||||||
ports:
|
ports:
|
||||||
- 8080:8080
|
- 8080:8080
|
||||||
- 18080:18080
|
- 18080:18080
|
||||||
command: 'volume -max=5 -mserver="master:9333" -port=8080'
|
command: 'volume -max=15 -mserver="master:9333" -port=8080'
|
||||||
depends_on:
|
depends_on:
|
||||||
- master
|
- master
|
||||||
networks:
|
|
||||||
default:
|
|
||||||
aliases:
|
|
||||||
- seaweed_volume
|
|
||||||
filer:
|
filer:
|
||||||
image: chrislusf/seaweedfs # use a remote image
|
image: chrislusf/seaweedfs # use a remote image
|
||||||
ports:
|
ports:
|
||||||
- 8888:8888
|
- 8888:8888
|
||||||
- 18888:18888
|
- 18888:18888
|
||||||
command: 'filer -master="master:9333"'
|
command: 'filer -master="master:9333"'
|
||||||
|
tty: true
|
||||||
|
stdin_open: true
|
||||||
depends_on:
|
depends_on:
|
||||||
- master
|
- master
|
||||||
- volume
|
- volume
|
||||||
networks:
|
|
||||||
default:
|
|
||||||
aliases:
|
|
||||||
- seaweed_filer
|
|
||||||
s3:
|
s3:
|
||||||
image: chrislusf/seaweedfs # use a remote image
|
image: chrislusf/seaweedfs # use a remote image
|
||||||
ports:
|
ports:
|
||||||
|
@ -44,7 +34,3 @@ services:
|
||||||
- master
|
- master
|
||||||
- volume
|
- volume
|
||||||
- filer
|
- filer
|
||||||
networks:
|
|
||||||
default:
|
|
||||||
aliases:
|
|
||||||
- seaweed_s3
|
|
||||||
|
|
|
@ -29,12 +29,11 @@ case "$1" in
|
||||||
;;
|
;;
|
||||||
|
|
||||||
'filer')
|
'filer')
|
||||||
exec /bin/mkdir -p /data/filerdb
|
|
||||||
ARGS="-ip `hostname -i` "
|
ARGS="-ip `hostname -i` "
|
||||||
if [ -n "$MASTER_PORT_9333_TCP_ADDR" ] ; then
|
if [ -n "$MASTER_PORT_9333_TCP_ADDR" ] ; then
|
||||||
ARGS="$ARGS -master=$MASTER_PORT_9333_TCP_ADDR:$MASTER_PORT_9333_TCP_PORT"
|
ARGS="$ARGS -master=$MASTER_PORT_9333_TCP_ADDR:$MASTER_PORT_9333_TCP_PORT"
|
||||||
fi
|
fi
|
||||||
exec /usr/bin/weed $@ $ARGS
|
exec /bin/mkdir -p /data/filerdb; /usr/bin/weed $@ $ARGS
|
||||||
;;
|
;;
|
||||||
|
|
||||||
's3')
|
's3')
|
||||||
|
|
Loading…
Reference in a new issue