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

     1  version: "3.5"
     2  services:
     3    zero1:
     4      image: dgraph/dgraph:local
     5      working_dir: /data/zero1
     6      ports:
     7        - 5080
     8        - 6080
     9      labels:
    10        cluster: test
    11        service: zero
    12      volumes:
    13        - type: bind
    14          source: $GOPATH/bin
    15          target: /gobin
    16          read_only: true
    17      command: /gobin/dgraph  ${COVERAGE_OUTPUT} zero --my=zero1:5080 --replicas 3 --raft="idx=1" --logtostderr -v=2 --bindall --expose_trace --profile_mode block --block_rate 10
    18  
    19    zero2:
    20      image: dgraph/dgraph:local
    21      working_dir: /data/zero2
    22      depends_on:
    23        - zero1
    24      ports:
    25        - 5080
    26        - 6080
    27      labels:
    28        cluster: test
    29        service: zero
    30      volumes:
    31        - type: bind
    32          source: $GOPATH/bin
    33          target: /gobin
    34          read_only: true
    35      command: /gobin/dgraph   ${COVERAGE_OUTPUT} zero --my=zero2:5080 --replicas 3 --raft="idx=2" --logtostderr -v=2 --peer=zero1:5080
    36  
    37    zero3:
    38      image: dgraph/dgraph:local
    39      working_dir: /data/zero3
    40      depends_on:
    41        - zero2
    42      ports:
    43        - 5080
    44        - 6080
    45      labels:
    46        cluster: test
    47        service: zero
    48      volumes:
    49        - type: bind
    50          source: $GOPATH/bin
    51          target: /gobin
    52          read_only: true
    53      command: /gobin/dgraph  ${COVERAGE_OUTPUT} zero --my=zero3:5080 --replicas 3 --raft="idx=3" --logtostderr -v=2 --peer=zero1:5080
    54  
    55    alpha1:
    56      image: dgraph/dgraph:local
    57      working_dir: /data/alpha1
    58      volumes:
    59        - type: bind
    60          source: $GOPATH/bin
    61          target: /gobin
    62          read_only: true
    63        - type: bind
    64          source: ../ee/acl/hmac-secret
    65          target: /dgraph-acl/hmac-secret
    66          read_only: true
    67        - type: bind
    68          source: ../ee/enc/test-fixtures/enc-key
    69          target: /dgraph-enc/enc-key
    70          read_only: true
    71      ports:
    72        - 8080
    73        - 9080
    74      labels:
    75        cluster: test
    76        service: alpha
    77      command: /gobin/dgraph  ${COVERAGE_OUTPUT} alpha --encryption "key-file=/dgraph-enc/enc-key;" --my=alpha1:7080 --zero=zero1:5080,zero2:5080,zero3:5080 --expose_trace --profile_mode block --block_rate 10 --logtostderr -v=2
    78        --security "whitelist=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16;"
    79        --acl "secret-file=/dgraph-acl/hmac-secret; access-ttl=20s;"
    80  
    81    alpha2:
    82      image: dgraph/dgraph:local
    83      working_dir: /data/alpha2
    84      depends_on:
    85        - alpha1
    86      volumes:
    87        - type: bind
    88          source: $GOPATH/bin
    89          target: /gobin
    90          read_only: true
    91        - type: bind
    92          source: ../ee/acl/hmac-secret
    93          target: /dgraph-acl/hmac-secret
    94          read_only: true
    95        - type: bind
    96          source: ../ee/enc/test-fixtures/enc-key
    97          target: /dgraph-enc/enc-key
    98          read_only: true
    99      ports:
   100        - 8080
   101        - 9080
   102      labels:
   103        cluster: test
   104        service: alpha
   105      command: /gobin/dgraph  ${COVERAGE_OUTPUT} alpha --encryption "key-file=/dgraph-enc/enc-key;" --my=alpha2:7080 --zero=zero1:5080,zero2:5080,zero3:5080 --expose_trace --profile_mode block --block_rate 10 --logtostderr -v=2
   106        --security "whitelist=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16;"
   107        --acl "secret-file=/dgraph-acl/hmac-secret; access-ttl=20s;"
   108  
   109    alpha3:
   110      image: dgraph/dgraph:local
   111      working_dir: /data/alpha3
   112      depends_on:
   113        - alpha2
   114      volumes:
   115        - type: bind
   116          source: $GOPATH/bin
   117          target: /gobin
   118          read_only: true
   119        - type: bind
   120          source: ../ee/acl/hmac-secret
   121          target: /dgraph-acl/hmac-secret
   122          read_only: true
   123        - type: bind
   124          source: ../ee/enc/test-fixtures/enc-key
   125          target: /dgraph-enc/enc-key
   126          read_only: true
   127      ports:
   128        - 8080
   129        - 9080
   130      labels:
   131        cluster: test
   132        service: alpha
   133      command: /gobin/dgraph  ${COVERAGE_OUTPUT} alpha --encryption "key-file=/dgraph-enc/enc-key;" --my=alpha3:7080 --zero=zero1:5080,zero2:5080,zero3:5080 --expose_trace --profile_mode block --block_rate 10 --logtostderr -v=2
   134        --security "whitelist=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16;"
   135        --acl "secret-file=/dgraph-acl/hmac-secret; access-ttl=20s;"
   136  
   137    alpha4:
   138      image: dgraph/dgraph:local
   139      working_dir: /data/alpha4
   140      depends_on:
   141        - alpha3
   142      volumes:
   143        - type: bind
   144          source: $GOPATH/bin
   145          target: /gobin
   146          read_only: true
   147        - type: bind
   148          source: ../ee/acl/hmac-secret
   149          target: /dgraph-acl/hmac-secret
   150          read_only: true
   151        - type: bind
   152          source: ../ee/enc/test-fixtures/enc-key
   153          target: /dgraph-enc/enc-key
   154          read_only: true
   155      ports:
   156        - 8080
   157        - 9080
   158      labels:
   159        cluster: test
   160        service: alpha
   161      command: /gobin/dgraph  ${COVERAGE_OUTPUT} alpha --encryption "key-file=/dgraph-enc/enc-key;" --my=alpha4:7080 --zero=zero1:5080,zero2:5080,zero3:5080 --expose_trace --profile_mode block --block_rate 10 --logtostderr -v=2
   162        --security "whitelist=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16;"
   163        --acl "secret-file=/dgraph-acl/hmac-secret; access-ttl=20s;"
   164  
   165    alpha5:
   166      image: dgraph/dgraph:local
   167      working_dir: /data/alpha5
   168      depends_on:
   169        - alpha4
   170      volumes:
   171        - type: bind
   172          source: $GOPATH/bin
   173          target: /gobin
   174          read_only: true
   175        - type: bind
   176          source: ../ee/acl/hmac-secret
   177          target: /dgraph-acl/hmac-secret
   178          read_only: true
   179        - type: bind
   180          source: ../ee/enc/test-fixtures/enc-key
   181          target: /dgraph-enc/enc-key
   182          read_only: true
   183      ports:
   184        - 8080
   185        - 9080
   186      labels:
   187        cluster: test
   188        service: alpha
   189      command: /gobin/dgraph  ${COVERAGE_OUTPUT} alpha --encryption "key-file=/dgraph-enc/enc-key;" --my=alpha5:7080 --zero=zero1:5080,zero2:5080,zero3:5080 --expose_trace --profile_mode block --block_rate 10 --logtostderr -v=2
   190        --security "whitelist=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16;"
   191        --acl "secret-file=/dgraph-acl/hmac-secret; access-ttl=20s;"
   192  
   193    alpha6:
   194      image: dgraph/dgraph:local
   195      working_dir: /data/alpha6
   196      depends_on:
   197        - alpha5
   198      volumes:
   199        - type: bind
   200          source: $GOPATH/bin
   201          target: /gobin
   202          read_only: true
   203        - type: bind
   204          source: ../ee/acl/hmac-secret
   205          target: /dgraph-acl/hmac-secret
   206          read_only: true
   207        - type: bind
   208          source: ../ee/enc/test-fixtures/enc-key
   209          target: /dgraph-enc/enc-key
   210          read_only: true
   211      ports:
   212        - 8080
   213        - 9080
   214      labels:
   215        cluster: test
   216        service: alpha
   217      command: /gobin/dgraph  ${COVERAGE_OUTPUT} alpha --encryption "key-file=/dgraph-enc/enc-key;" --my=alpha6:7080 --zero=zero1:5080,zero2:5080,zero3:5080 --expose_trace --profile_mode block --block_rate 10 --logtostderr -v=2
   218        --security "whitelist=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16;"
   219        --acl "secret-file=/dgraph-acl/hmac-secret; access-ttl=20s;"
   220  
   221    minio:
   222      image: minio/minio:latest
   223      env_file:
   224        - ./minio.env
   225      working_dir: /data/minio
   226      ports:
   227        - 9001
   228      labels:
   229        cluster: test
   230      command: minio server /data/minio --address :9001