version: '3'

services:
  data:
    image: dgraph/dgraph:master
    volumes:
      - dgraph:/dgraph
  zero:
    image: dgraph/dgraph:master
    command: dgraph zero --port_offset -2000 --my=zero:5080
    restart: on-failure
    volumes:
      - dgraph:/dgraph
  server:
    image: dgraph/dgraph:master
    command: dgraph server --my=server:7080 --memory_mb=2048 --zero=zero:5080
    restart: on-failure
    volumes:
      - dgraph:/dgraph
    ports:
      - 8080:8080
      - 9080:9080

volumes:
  dgraph:

version: '3'

services:
  zero:
    image: dgraph/dgraph:v1.0.1
    command: dgraph zero --port_offset -2000 --my=zero:5080
    restart: on-failure
    volumes:
      - dgraph:/dgraph
  server:
    image: dgraph/dgraph:v1.0.1
    command: dgraph server --my=server:7080 --memory_mb=2048 --zero=zero:5080
    restart: on-failure
    volumes:
      - dgraph:/dgraph
    ports:
      - 8080:8080
      - 9080:9080
  ui:
    image: dgraph/dgraph:v1.0.1
    command: dgraph-ratel
    restart: on-failure
    ports:
      - 8081:8081
volumes:
  dgraph:

Use stable version of dgraph, run UI on 8081 and remove redundant data service
Use stable version of dgraph, run UI on 8081 and remove redundant data service
