diff options
| author | chrislu <chris.lu@gmail.com> | 2024-01-13 17:52:18 -0800 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2024-01-13 17:52:18 -0800 |
| commit | 49f7de9daa46a9cc1b793ba56e39b84b288e3dc4 (patch) | |
| tree | 79de189b8903c7db01f7cf8bb274672a291b5fff /docker/compose | |
| parent | d6ba97219be6f9b94f56008863423004fac46358 (diff) | |
| parent | 8d23e36c4512679e1c866bf166bd57b6b52bcc90 (diff) | |
| download | seaweedfs-49f7de9daa46a9cc1b793ba56e39b84b288e3dc4.tar.xz seaweedfs-49f7de9daa46a9cc1b793ba56e39b84b288e3dc4.zip | |
Merge branch 'master' into mq-subscribe
Diffstat (limited to 'docker/compose')
| -rw-r--r-- | docker/compose/local-sync-mount-compose.yml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/docker/compose/local-sync-mount-compose.yml b/docker/compose/local-sync-mount-compose.yml index fec866698..0ce1fdeda 100644 --- a/docker/compose/local-sync-mount-compose.yml +++ b/docker/compose/local-sync-mount-compose.yml @@ -3,19 +3,54 @@ services: node1: image: chrislusf/seaweedfs:local command: "server -master -volume -filer" + ports: + - 8888:8888 + - 18888:18888 + healthcheck: + test: [ "CMD", "curl", "--fail", "-I", "http://localhost:9333/cluster/healthz" ] + interval: 1s + start_period: 10s + timeout: 30s mount1: image: chrislusf/seaweedfs:local privileged: true command: "mount -filer=node1:8888 -dir=/mnt -dirAutoCreate" + healthcheck: + test: [ "CMD", "curl", "--fail", "-I", "http://node1:8888/" ] + interval: 1s + start_period: 10s + timeout: 30s + depends_on: + node1: + condition: service_healthy node2: image: chrislusf/seaweedfs:local ports: - 7888:8888 + - 17888:18888 command: "server -master -volume -filer" + healthcheck: + test: [ "CMD", "curl", "--fail", "-I", "http://localhost:9333/cluster/healthz" ] + interval: 1s + start_period: 10s + timeout: 30s mount2: image: chrislusf/seaweedfs:local privileged: true command: "mount -filer=node2:8888 -dir=/mnt -dirAutoCreate" + healthcheck: + test: [ "CMD", "curl", "--fail", "-I", "http://node2:8888/" ] + interval: 1s + start_period: 10s + timeout: 30s + depends_on: + node2: + condition: service_healthy sync: image: chrislusf/seaweedfs:local command: "-v=4 filer.sync -a=node1:8888 -b=node2:8888 -a.debug -b.debug" + depends_on: + mount1: + condition: service_healthy + mount2: + condition: service_healthy |
