Hello @gja, can u pleae help me out how to run the dgraph locally. Below is my local dgraph configuration file:
zero:
image: dgraph/dgraph:v21.03.1
volumes:
- data:/var/lib/dgraph-local/data:/dgraph
ports:
- 5080:5080
- 6080:6080
restart: on-failure
command: dgraph zero --my=zero:5080
alpha:
image: dgraph/dgraph:v21.03.1
volumes:
- data:/var/lib/dgraph-local/data:/dgraph
ports:
- 8080:8080
- 9080:9080
restart: on-failure
command: dgraph alpha --my=alpha:7080 --zero=zero:5080 --security whitelist=172.20.0.1
ratel:
image: dgraph/dgraph:latest
volumes:
- type: volume
source: pcc-dgraph
target: /pcc-dgraph
volume:
nocopy: true
ports:
- 8000:8000
command: dgraph-ratel
db:
image: arm64v8/postgres
restart: on-failure
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_HOST=${POSTGRES_HOST}
- POSTGRES_PORT=${POSTGRES_PORT}
- POSTGRES_NAME=${POSTGRES_NAME}
ports:
- 5432:5432
volumes:
- data:/var/lib/postgresql/data
pcc-server:
build:
context: ./
dockerfile: ./cmd/pcc-server/Dockerfile
args:
GOOS: linux
GOARCH: arm64
environment:
- DGRAPH_HEALTH_URL=${DGRAPH_HEALTH_URL}
- DGRAPH_URL=${DGRAPH_URL}
- PCC_ENV=${PCC_ENV}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_HOST=${POSTGRES_HOST}
- POSTGRES_PORT=${POSTGRES_PORT}
- POSTGRES_NAME=${POSTGRES_NAME}
ports:
- 9999:9999
command: ./pcc-go
depends_on:
- db
- alpha
- zero
- ratel
volumes:
data:
pcc-dgraph:
Whenever I run this compose file, I get error:
Cannot start service ratel: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "dgraph-ratel": executable file not found in $PATH: unknown