aboutsummaryrefslogtreecommitdiff
path: root/docker/compose
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-05-06 03:53:36 -0700
committerchrislu <chris.lu@gmail.com>2022-05-06 03:53:36 -0700
commit22fbce8fd5038e40ad968b9e8a9e05fcf61d70a1 (patch)
tree433ec98614a0fb858b1859ec24ea4fbfb90a9df8 /docker/compose
parent10207a48a45ff9299918fdeaa78827ab2882f993 (diff)
downloadseaweedfs-22fbce8fd5038e40ad968b9e8a9e05fcf61d70a1.tar.xz
seaweedfs-22fbce8fd5038e40ad968b9e8a9e05fcf61d70a1.zip
add docker compose file to sync 2 mounts
Diffstat (limited to 'docker/compose')
-rw-r--r--docker/compose/local-sync-mount-compose.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/docker/compose/local-sync-mount-compose.yml b/docker/compose/local-sync-mount-compose.yml
new file mode 100644
index 000000000..fec866698
--- /dev/null
+++ b/docker/compose/local-sync-mount-compose.yml
@@ -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"