github.com/unigraph-dev/dgraph@v1.1.1-0.20200923154953-8b52b426f765/contrib/embargo/embargo.yml (about) 1 # Embargo config for testing network failures and network partiions. 2 # Embargo (fork of blockade) docs: https://blockade.readthedocs.io 3 # Usage: 4 # embargo up 5 # To partition zero1 and dg1 from the rest of the cluster: 6 # embargo partition zero1,dg1 7 8 containers: 9 zero1: 10 image: dgraph/dgraph:latest 11 hostname: "zero1" 12 # Needed for DNS with network set to udn 13 container_name: "zero1" 14 ports: 15 - 5080 16 - 6080 17 expose: 18 - 5080 19 - 6080 20 command: /gobin/dgraph zero --my=zero1:5080 --replicas 3 --idx 1 --bindall --expose_trace --logtostderr -v=3 21 volumes: 22 # Note: Any environment variables must use the ${} syntax. 23 # ${GOPATH} works, $GOPATH does not. 24 "${GOPATH}/bin": "/gobin" 25 26 zero2: 27 image: dgraph/dgraph:latest 28 hostname: "zero2" 29 container_name: "zero2" 30 ports: 31 - 5082 32 - 6082 33 expose: 34 - 5082 35 - 6082 36 command: /gobin/dgraph zero -o 2 --my=zero2:5082 --replicas 3 --peer=zero1:5080 --idx 2 --bindall --expose_trace --logtostderr -v=3 37 volumes: 38 "${GOPATH}/bin": "/gobin" 39 40 zero3: 41 image: dgraph/dgraph:latest 42 hostname: "zero3" 43 container_name: "zero3" 44 ports: 45 - 5083 46 - 6083 47 expose: 48 - 5083 49 - 6083 50 command: /gobin/dgraph zero -o 3 --my=zero3:5083 --replicas 3 --peer=zero1:5080 --idx 3 --bindall --expose_trace --logtostderr -v=3 51 volumes: 52 "${GOPATH}/bin": "/gobin" 53 54 dg1: 55 image: dgraph/dgraph:latest 56 hostname: "dg1" 57 container_name: "dg1" 58 ports: 59 - 8180 60 - 9180 61 expose: 62 - 8180 63 - 9180 64 command: /gobin/dgraph alpha --my=dg1:7180 --lru_mb=1024 --zero=zero1:5080 -o 100 --expose_trace --trace 1.0 --logtostderr -v=3 65 volumes: 66 "${GOPATH}/bin": "/gobin" 67 68 dg2: 69 image: dgraph/dgraph:latest 70 hostname: "dg2" 71 container_name: "dg2" 72 ports: 73 - 8182 74 - 9182 75 expose: 76 - 8182 77 - 9182 78 start_delay: 8 79 command: /gobin/dgraph alpha --my=dg2:7182 --lru_mb=1024 --zero=zero1:5080 -o 102 --expose_trace --trace 1.0 --logtostderr -v=3 80 volumes: 81 "${GOPATH}/bin": "/gobin" 82 83 dg3: 84 image: dgraph/dgraph:latest 85 hostname: "dg3" 86 container_name: "dg3" 87 ports: 88 - 8183 89 - 9183 90 expose: 91 - 8183 92 - 9183 93 start_delay: 16 94 command: /gobin/dgraph alpha --my=dg3:7183 --lru_mb=1024 --zero=zero1:5080 -o 103 --expose_trace --trace 1.0 --logtostderr -v=3 95 volumes: 96 "${GOPATH}/bin": "/gobin" 97 98 network: 99 driver: "udn"