# Auto-generated with: [/tmp/go-build096288170/b001/exe/compose -a 2 -z 1 -w -o 0]
#
version: "3.5"
services:
  alpha1:
    image: dgraph/dgraph:v20.07.0
    container_name: alpha1
    working_dir: /data/alpha1
    labels:
      cluster: test
    ports:
    - 8080:8080
    - 9080:9080
    volumes:
    - type: bind
      source: $GOPATH/bin
      target: /gobin
      read_only: true
    deploy:
      resources:
        limits:
          memory: 12G
          cpus: "4"
    command: /gobin/dgraph alpha -o 0 --my=alpha1:7080 --lru_mb=1024 --zero=zero1:5080
      --logtostderr -v=2 --idx=1 --whitelist=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
  alpha2:
    image: dgraph/dgraph:v20.07.0
    container_name: alpha2
    working_dir: /data/alpha2
    depends_on:
    - alpha1
    labels:
      cluster: test
    ports:
    - 8082:8082
    - 9082:9082
    volumes:
    - type: bind
      source: $GOPATH/bin
      target: /gobin
      read_only: true
    deploy:
      resources:
        limits:
          memory: 12G
          cpus: "4"
    command: /gobin/dgraph alpha -o 2 --my=alpha2:7082 --lru_mb=1024 --zero=zero1:5080
      --logtostderr -v=2 --idx=2 --whitelist=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
  zero1:
    image: dgraph/dgraph:v20.07.0
    container_name: zero1
    working_dir: /data/zero1
    labels:
      cluster: test
    ports:
    - 5080:5080
    - 6080:6080
    volumes:
    - type: bind
      source: $GOPATH/bin
      target: /gobin
      read_only: true
    deploy:
      resources:
        limits:
          memory: 12G
          cpus: "4"
    command: /gobin/dgraph zero -o 0 --idx=1 --my=zero1:5080 --logtostderr
      -v=2 --bindall
volumes: {}
