mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
separate docker-compose.yml into local and remote images
This commit is contained in:
parent
2a19511ba8
commit
3cb2333679
|
@ -2,8 +2,7 @@ version: '2'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
master:
|
master:
|
||||||
#image: chrislusf/seaweedfs # use a remote image
|
image: chrislusf/seaweedfs # use a remote image
|
||||||
build: . # build our container from the local Dockerfile
|
|
||||||
ports:
|
ports:
|
||||||
- 9333:9333
|
- 9333:9333
|
||||||
command: "master"
|
command: "master"
|
||||||
|
@ -12,8 +11,7 @@ services:
|
||||||
aliases:
|
aliases:
|
||||||
- seaweed_master
|
- seaweed_master
|
||||||
volume:
|
volume:
|
||||||
#image: chrislusf/seaweedfs # use a remote image
|
image: chrislusf/seaweedfs # use a remote image
|
||||||
build: . # build our container from the local Dockerfile
|
|
||||||
ports:
|
ports:
|
||||||
- 8080:8080
|
- 8080:8080
|
||||||
- 18080:18080
|
- 18080:18080
|
||||||
|
@ -25,8 +23,7 @@ services:
|
||||||
aliases:
|
aliases:
|
||||||
- seaweed_volume
|
- seaweed_volume
|
||||||
filer:
|
filer:
|
||||||
#image: chrislusf/seaweedfs # use a remote image
|
image: chrislusf/seaweedfs # use a remote image
|
||||||
build: . # build our container from the local Dockerfile
|
|
||||||
ports:
|
ports:
|
||||||
- 8888:8888
|
- 8888:8888
|
||||||
- 18888:18888
|
- 18888:18888
|
||||||
|
@ -39,8 +36,7 @@ services:
|
||||||
aliases:
|
aliases:
|
||||||
- seaweed_filer
|
- seaweed_filer
|
||||||
s3:
|
s3:
|
||||||
#image: chrislusf/seaweedfs # use a remote image
|
image: chrislusf/seaweedfs # use a remote image
|
||||||
build: . # build our container from the local Dockerfile
|
|
||||||
ports:
|
ports:
|
||||||
- 8333:8333
|
- 8333:8333
|
||||||
command: 's3 -filer="filer:8888"'
|
command: 's3 -filer="filer:8888"'
|
||||||
|
|
54
docker/local-compose.yml
Normal file
54
docker/local-compose.yml
Normal file
|
@ -0,0 +1,54 @@
|
||||||
|
version: '2'
|
||||||
|
|
||||||
|
services:
|
||||||
|
master:
|
||||||
|
#image: chrislusf/seaweedfs # use a remote image
|
||||||
|
build: . # build our container from the local Dockerfile
|
||||||
|
ports:
|
||||||
|
- 9333:9333
|
||||||
|
command: "master"
|
||||||
|
networks:
|
||||||
|
default:
|
||||||
|
aliases:
|
||||||
|
- seaweed_master
|
||||||
|
volume:
|
||||||
|
#image: chrislusf/seaweedfs # use a remote image
|
||||||
|
build: . # build our container from the local Dockerfile
|
||||||
|
ports:
|
||||||
|
- 8080:8080
|
||||||
|
- 18080:18080
|
||||||
|
command: 'volume -max=5 -mserver="master:9333" -port=8080'
|
||||||
|
depends_on:
|
||||||
|
- master
|
||||||
|
networks:
|
||||||
|
default:
|
||||||
|
aliases:
|
||||||
|
- seaweed_volume
|
||||||
|
filer:
|
||||||
|
#image: chrislusf/seaweedfs # use a remote image
|
||||||
|
build: . # build our container from the local Dockerfile
|
||||||
|
ports:
|
||||||
|
- 8888:8888
|
||||||
|
- 18888:18888
|
||||||
|
command: 'filer -master="master:9333"'
|
||||||
|
depends_on:
|
||||||
|
- master
|
||||||
|
- volume
|
||||||
|
networks:
|
||||||
|
default:
|
||||||
|
aliases:
|
||||||
|
- seaweed_filer
|
||||||
|
s3:
|
||||||
|
#image: chrislusf/seaweedfs # use a remote image
|
||||||
|
build: . # build our container from the local Dockerfile
|
||||||
|
ports:
|
||||||
|
- 8333:8333
|
||||||
|
command: 's3 -filer="filer:8888"'
|
||||||
|
depends_on:
|
||||||
|
- master
|
||||||
|
- volume
|
||||||
|
- filer
|
||||||
|
networks:
|
||||||
|
default:
|
||||||
|
aliases:
|
||||||
|
- seaweed_s3
|
Loading…
Reference in a new issue