github.com/dshekhar95/sub_dgraph@v0.0.0-20230424164411-6be28e40bbf1/dgraph/cmd/alpha/mutations_mode/docker-compose.yml (about)

     1  # Auto-generated with: [/home/mrjn/go/bin/compose -a3 -z3 --mem= --names=false -o=0 --expose_ports=false]
     2  # And manually modified to add --limit "mutations=<mode>;" flags in Alphas.
     3  #
     4  version: "3.5"
     5  services:
     6    alpha1:
     7      image: dgraph/dgraph:local
     8      working_dir: /data/alpha1
     9      labels:
    10        cluster: test
    11      ports:
    12      - "8080"
    13      - "9080"
    14      volumes:
    15      - type: bind
    16        source: $GOPATH/bin
    17        target: /gobin
    18        read_only: true
    19      command: /gobin/dgraph  ${COVERAGE_OUTPUT} alpha --my=alpha1:7080 --zero=zero1:5080,zero2:5080,zero3:5080
    20        --logtostderr -v=2
    21        --security "whitelist=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16;"
    22        --limit "mutations=disallow;"
    23    alpha2:
    24      image: dgraph/dgraph:local
    25      working_dir: /data/alpha2
    26      labels:
    27        cluster: test
    28      ports:
    29      - "8080"
    30      - "9080"
    31      volumes:
    32      - type: bind
    33        source: $GOPATH/bin
    34        target: /gobin
    35        read_only: true
    36      command: /gobin/dgraph  ${COVERAGE_OUTPUT} alpha --my=alpha2:7080 --zero=zero1:5080,zero2:5080,zero3:5080
    37        --logtostderr -v=2
    38        --security "whitelist=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16;"
    39        --limit "mutations=strict;"
    40    alpha3:
    41      image: dgraph/dgraph:local
    42      working_dir: /data/alpha3
    43      labels:
    44        cluster: test
    45      ports:
    46      - "8080"
    47      - "9080"
    48      volumes:
    49      - type: bind
    50        source: $GOPATH/bin
    51        target: /gobin
    52        read_only: true
    53      command: /gobin/dgraph  ${COVERAGE_OUTPUT} alpha --my=alpha3:7080 --zero=zero1:5080,zero2:5080,zero3:5080
    54        --logtostderr -v=2
    55        --security "whitelist=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16;"
    56        --limit "mutations=strict;"
    57    zero1:
    58      image: dgraph/dgraph:local
    59      working_dir: /data/zero1
    60      labels:
    61        cluster: test
    62      ports:
    63      - "5080"
    64      - "6080"
    65      volumes:
    66      - type: bind
    67        source: $GOPATH/bin
    68        target: /gobin
    69        read_only: true
    70      command: /gobin/dgraph  ${COVERAGE_OUTPUT} zero --raft "idx=1;" --my=zero1:5080 --replicas=1 --logtostderr
    71        -v=2 --bindall
    72    zero2:
    73      image: dgraph/dgraph:local
    74      working_dir: /data/zero2
    75      depends_on:
    76      - zero1
    77      labels:
    78        cluster: test
    79      ports:
    80      - "5080"
    81      - "6080"
    82      volumes:
    83      - type: bind
    84        source: $GOPATH/bin
    85        target: /gobin
    86        read_only: true
    87      command: /gobin/dgraph  ${COVERAGE_OUTPUT} zero --raft "idx=2;" --my=zero2:5080 --replicas=1 --logtostderr
    88        -v=2 --peer=zero1:5080
    89    zero3:
    90      image: dgraph/dgraph:local
    91      working_dir: /data/zero3
    92      depends_on:
    93      - zero2
    94      labels:
    95        cluster: test
    96      ports:
    97      - "5080"
    98      - "6080"
    99      volumes:
   100      - type: bind
   101        source: $GOPATH/bin
   102        target: /gobin
   103        read_only: true
   104      command: /gobin/dgraph  ${COVERAGE_OUTPUT} zero --raft "idx=3;" --my=zero3:5080 --replicas=1 --logtostderr
   105        -v=2 --peer=zero1:5080
   106  volumes: {}