aboutsummaryrefslogtreecommitdiff
path: root/docker/compose/e2e-mount.yml
blob: eb4631f04ec26831709d2db6790eeee82b5554e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: '3.9'

services:
  master:
    image: chrislusf/seaweedfs:e2e
    command: "-v=4 master -ip=master -ip.bind=0.0.0.0 -raftBootstrap"
    healthcheck:
      test: [ "CMD", "curl", "--fail", "-I", "http://localhost:9333/cluster/healthz" ]
      interval: 2s
      timeout: 10s
      retries: 30
      start_period: 10s

  volume:
    image: chrislusf/seaweedfs:e2e
    command: "-v=4 volume -master=master:9333 -ip=volume -ip.bind=0.0.0.0 -preStopSeconds=1"
    healthcheck:
      test: [ "CMD", "curl", "--fail", "-I", "http://localhost:8080/healthz" ]
      interval: 2s
      timeout: 10s
      retries: 15
      start_period: 5s
    depends_on:
      master:
        condition: service_healthy

  filer:
    image: chrislusf/seaweedfs:e2e
    command: "-v=4 filer -master=master:9333 -ip=filer -ip.bind=0.0.0.0"
    healthcheck:
      test: [ "CMD", "curl", "--fail", "-I", "http://localhost:8888" ]
      interval: 2s
      timeout: 10s
      retries: 15
      start_period: 5s
    depends_on:
      volume:
        condition: service_healthy

  mount:
    image: chrislusf/seaweedfs:e2e
    command: "-v=4 mount -filer=filer:8888 -filer.path=/ -dirAutoCreate -dir=/mnt/seaweedfs"
    cap_add:
      - SYS_ADMIN
    devices:
      - /dev/fuse
    security_opt:
      - apparmor:unconfined
    deploy:
      resources:
        limits:
          memory: 4096m
    healthcheck:
      test: [ "CMD", "mountpoint", "-q", "--", "/mnt/seaweedfs" ]
      interval: 2s
      timeout: 10s
      retries: 15
      start_period: 10s
    depends_on:
      filer:
        condition: service_healthy