Skip to content

Instantly share code, notes, and snippets.

View danielmai's full-sized avatar

Daniel Mai danielmai

  • San Francisco, CA
View GitHub Profile
@danielmai
danielmai / docker-compose.yml
Last active September 6, 2019 01:21
Docker Compose to run Dgraph, bind-mounting data directories to $HOME/dgraph
version: "3.2"
services:
zero:
image: dgraph/dgraph:latest
volumes:
- type: bind
source: $HOME/dgraph
target: /dgraph
ports:
- 5080:5080
@danielmai
danielmai / README.md
Last active May 24, 2024 02:35
Dgraph + Nginx Load Balancing

Download this gist's ZIP file and extract it to a directory called dgraph-nginx.

mkdir dgraph-nginx
cd dgraph-nginx
wget -O dgraph-nginx.zip https://gist.github.com/danielmai/0cf7647b27c7626ad8944c4245a9981e/archive/5a2f1a49ca2f77bc39981749e4783e3443eb3ad9.zip
unzip -j dgraph-nginx.zip

This creates two files: docker-compose.yml and nginx.conf.

@danielmai
danielmai / _README.md
Last active May 28, 2021 19:08 — forked from mjpitz/_README.md
dgraph troubles