github.com/unigraph-dev/dgraph@v1.1.1-0.20200923154953-8b52b426f765/ee/backup/tests/filesystem/docker-compose.yml (about)

     1  version: "3.5"
     2  services:
     3    zero1:
     4      image: dgraph/dgraph:latest
     5      container_name: zero1
     6      working_dir: /data/zero1
     7      labels:
     8        cluster: test
     9      ports:
    10        - 5180:5180
    11        - 6180:6180
    12      command: /gobin/dgraph zero --cwd=/data/zero1 --my=zero1:5180 -o 100 --bindall --logtostderr -v=0
    13      volumes:
    14        - type: bind
    15          source: $GOPATH/bin
    16          target: /gobin
    17          read_only: true
    18  
    19    alpha1:
    20      image: dgraph/dgraph:latest
    21      container_name: alpha1
    22      working_dir: /data/alpha1
    23      labels:
    24        cluster: test
    25      volumes:
    26        - type: bind
    27          source: $GOPATH/bin
    28          target: /gobin
    29          read_only: true
    30        - type: bind
    31          source: $GOPATH/src/github.com/dgraph-io/dgraph/ee/backup/tests/filesystem/data/backups
    32          target: /data/backups/
    33          read_only: false
    34      ports:
    35        - 8180:8180
    36        - 9180:9180
    37      command: /gobin/dgraph alpha --cwd=/data/alpha1 --my=alpha1:7180 --lru_mb=1024 --zero=zero1:5180 -o 100 -v=0 --whitelist 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
    38  
    39    alpha2:
    40      image: dgraph/dgraph:latest
    41      container_name: alpha2
    42      working_dir: /data/alpha2
    43      labels:
    44        cluster: test
    45      depends_on:
    46        - alpha1
    47      volumes:
    48        - type: bind
    49          source: $GOPATH/bin
    50          target: /gobin
    51          read_only: true
    52        - type: bind
    53          source: $GOPATH/src/github.com/dgraph-io/dgraph/ee/backup/tests/filesystem/data/backups
    54          target: /data/backups/
    55          read_only: false
    56      ports:
    57        - 8182:8182
    58        - 9182:9182
    59      command: /gobin/dgraph alpha --cwd=/data/alpha2 --my=alpha2:7182 --lru_mb=1024 --zero=zero1:5180 -o 102 -v=0 --whitelist 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
    60  
    61    alpha3:
    62      image: dgraph/dgraph:latest
    63      container_name: alpha3
    64      working_dir: /data/alpha3
    65      labels:
    66        cluster: test
    67      depends_on:
    68        - alpha2
    69      volumes:
    70        - type: bind
    71          source: $GOPATH/bin
    72          target: /gobin
    73          read_only: true
    74        - type: bind
    75          source: $GOPATH/src/github.com/dgraph-io/dgraph/ee/backup/tests/filesystem/data/backups
    76          target: /data/backups/
    77          read_only: false
    78      ports:
    79        - 8183:8183
    80        - 9183:9183
    81      command: /gobin/dgraph alpha --cwd=/data/alpha3 --my=alpha3:7183 --lru_mb=1024 --zero=zero1:5180 -o 103 -v=0 --whitelist 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16