github.com/unigraph-dev/dgraph@v1.1.1-0.20200923154953-8b52b426f765/dgraph/cmd/alpha/mutations_mode/docker-compose.yml (about)

     1  # This file sets up the cluster required by the tests in this directory.
     2  version: "3.5"
     3  services:
     4    zero1:
     5      image: dgraph/dgraph:latest
     6      container_name: bank-dg0.1
     7      working_dir: /data/dg0.1
     8      ports:
     9        - 5180:5180
    10        - 6180:6180
    11      labels:
    12        cluster: test
    13      volumes:
    14        - type: bind
    15          source: $GOPATH/bin
    16          target: /gobin
    17          read_only: true
    18      command: /gobin/dgraph zero -o 100 --my=zero1:5180 --replicas 1 --idx 1 --logtostderr
    19  
    20    zero2:
    21      image: dgraph/dgraph:latest
    22      container_name: bank-dg0.2
    23      depends_on:
    24        - zero1
    25      ports:
    26        - 5182:5182
    27        - 6182:6182
    28      labels:
    29        cluster: test
    30      volumes:
    31        - type: bind
    32          source: $GOPATH/bin
    33          target: /gobin
    34          read_only: true
    35      command: /gobin/dgraph zero -o 102 --my=zero2:5182 --replicas 1 --idx 2 --logtostderr --peer=zero1:5180
    36  
    37    zero3:
    38      image: dgraph/dgraph:latest
    39      container_name: bank-dg0.3
    40      depends_on:
    41        - zero2
    42      ports:
    43        - 5183:5183
    44        - 6183:6183
    45      labels:
    46        cluster: test
    47      volumes:
    48        - type: bind
    49          source: $GOPATH/bin
    50          target: /gobin
    51          read_only: true
    52      command: /gobin/dgraph zero -o 103 --my=zero3:5183 --replicas 1 --idx 3 --logtostderr --peer=zero1:5180
    53  
    54    dg1:
    55      image: dgraph/dgraph:latest
    56      container_name: bank-dg1
    57      working_dir: /data/dg1
    58      volumes:
    59        - type: bind
    60          source: $GOPATH/bin
    61          target: /gobin
    62          read_only: true
    63      ports:
    64        - 8180:8180
    65        - 9180:9180
    66      labels:
    67        cluster: test
    68      command: /gobin/dgraph alpha --my=dg1:7180 --lru_mb=1024 --zero=zero1:5180 -o 100 --logtostderr --mutations=disallow
    69  
    70    dg2:
    71      image: dgraph/dgraph:latest
    72      container_name: bank-dg2
    73      working_dir: /data/dg2
    74      depends_on:
    75        - dg1
    76      volumes:
    77        - type: bind
    78          source: $GOPATH/bin
    79          target: /gobin
    80          read_only: true
    81      ports:
    82        - 8182:8182
    83        - 9182:9182
    84      labels:
    85        cluster: test
    86      command: /gobin/dgraph alpha --my=dg2:7182 --lru_mb=1024 --zero=zero1:5180 -o 102 --logtostderr --mutations=strict
    87  
    88    dg3:
    89      image: dgraph/dgraph:latest
    90      container_name: bank-dg3
    91      working_dir: /data/dg3
    92      depends_on:
    93        - dg2
    94      volumes:
    95        - type: bind
    96          source: $GOPATH/bin
    97          target: /gobin
    98          read_only: true
    99      ports:
   100        - 8183:8183
   101        - 9183:9183
   102      labels:
   103        cluster: test
   104      command: /gobin/dgraph alpha --my=dg3:7183 --lru_mb=1024 --zero=zero1:5180 -o 103 --logtostderr --mutations=strict