Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker and docker-compose #2

Open
dtrckd opened this issue Nov 8, 2022 · 0 comments
Open

docker and docker-compose #2

dtrckd opened this issue Nov 8, 2022 · 0 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@dtrckd
Copy link
Member

dtrckd commented Nov 8, 2022

Add docker and docker-compose files to deploy easily on any instances.

Here is a simple example of running dgraph with docker-compose, to start

version: '1'

services:
  zero:
    image: dgraph/dgraph:v20.03.3
    volumes:
      - dgraph-volume:/dgraph
    restart: always
    command: dgraph zero --my=zero:5080
  alpha:
    image: dgraph/dgraph:v20.03.3
    volumes:
      - dgraph-volume:/dgraph
    ports:
      - 8080:8080   # http for ratel
      - 9080:9080   # gRPC
    restart: always
    command: dgraph alpha --my=alpha:7080 --lru_mb=4096 --zero=zero:5080
  ratel:
    image: dgraph/dgraph:v20.03.3
    ports:
      - 8000:8000
    restart: always
    command: dgraph-ratel
@dtrckd dtrckd added good first issue Good for newcomers help wanted Extra attention is needed labels Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant