Docker-compose not working for alpha

What I want to do

Using community edition, I want to start zero, alpha and ratel

What I did

Here’s a part of my docker compose I am using

  dgraph-zero:
    image: dgraph/dgraph:latest
    volumes:
      - dgraph-data:/dgraph
    ports:
      - 5080:5080
      - 6080:6080
    networks:
      - aether_network
    restart: on-failure
    command: dgraph zero --my=zero:5080
  dgraph-alpha:
    image: dgraph/dgraph:latest
    volumes:
      - dgraph-data:/dgraph
    ports:
      - 8080:8080
      - 9080:9080
    networks:
      - aether_network
    restart: on-failure
    command: dgraph alpha --my=alpha:7080 --zero=zero:5080
  dgraph-ratel:
    image: dgraph/ratel:latest
    ports:
      - 8000:8000
    networks:
      - aether_network
networks:
  aether_network:

Dgraph metadata

Dgraph alpha continues to throw error
dgraph-alpha_1  | E1014 15:26:18.696457      22 groups.go:1181] Error during SubscribeForUpdates for prefix "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x15dgraph.graphql.schema\x00": Unable to find any servers for group: 1. closer err: <nil>
dgraph-alpha_1  | E1014 15:26:18.976680      22 pool.go:311] CONN: Unable to connect with zero:5080 : rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp: lookup zero: Temporary failure in name resolution"

PASTE THE RESULTS OF dgraph version HERE.

The address follows the name of the YAML block. e.g:

--my=dgraph-zero:5080
--my=dgraph-alpha:7080
1 Like