mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
add docker compose file to sync 2 mounts
This commit is contained in:
parent
10207a48a4
commit
22fbce8fd5
|
@ -58,6 +58,9 @@ cluster: build
|
||||||
2clusters: build
|
2clusters: build
|
||||||
docker-compose -f compose/local-clusters-compose.yml -p seaweedfs up
|
docker-compose -f compose/local-clusters-compose.yml -p seaweedfs up
|
||||||
|
|
||||||
|
2mount: build
|
||||||
|
docker-compose -f compose/local-sync-mount-compose.yml -p seaweedfs up
|
||||||
|
|
||||||
hashicorp_raft: build
|
hashicorp_raft: build
|
||||||
docker-compose -f compose/local-hashicorp-raft-compose.yml -p seaweedfs up
|
docker-compose -f compose/local-hashicorp-raft-compose.yml -p seaweedfs up
|
||||||
|
|
||||||
|
|
21
docker/compose/local-sync-mount-compose.yml
Normal file
21
docker/compose/local-sync-mount-compose.yml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
version: '3.9'
|
||||||
|
services:
|
||||||
|
node1:
|
||||||
|
image: chrislusf/seaweedfs:local
|
||||||
|
command: "server -master -volume -filer"
|
||||||
|
mount1:
|
||||||
|
image: chrislusf/seaweedfs:local
|
||||||
|
privileged: true
|
||||||
|
command: "mount -filer=node1:8888 -dir=/mnt -dirAutoCreate"
|
||||||
|
node2:
|
||||||
|
image: chrislusf/seaweedfs:local
|
||||||
|
ports:
|
||||||
|
- 7888:8888
|
||||||
|
command: "server -master -volume -filer"
|
||||||
|
mount2:
|
||||||
|
image: chrislusf/seaweedfs:local
|
||||||
|
privileged: true
|
||||||
|
command: "mount -filer=node2:8888 -dir=/mnt -dirAutoCreate"
|
||||||
|
sync:
|
||||||
|
image: chrislusf/seaweedfs:local
|
||||||
|
command: "-v=4 filer.sync -a=node1:8888 -b=node2:8888 -a.debug -b.debug"
|
Loading…
Reference in a new issue