github.com/unigraph-dev/dgraph@v1.1.1-0.20200923154953-8b52b426f765/contrib/config/docker/docker-compose.yml (about) 1 # This Docker Compose file can be used to quickly bootup Dgraph Zero 2 # and Alpha in different Docker containers. 3 4 # It mounts /tmp/data on the host machine to /dgraph within the 5 # container. You can change /tmp/data to a more appropriate location. 6 # Run `docker-compose up` to start Dgraph. 7 8 version: "3.2" 9 services: 10 zero: 11 image: dgraph/dgraph:latest 12 volumes: 13 - /tmp/data:/dgraph 14 ports: 15 - 5080:5080 16 - 6080:6080 17 restart: on-failure 18 command: dgraph zero --my=zero:5080 19 alpha: 20 image: dgraph/dgraph:latest 21 volumes: 22 - /tmp/data:/dgraph 23 ports: 24 - 8080:8080 25 - 9080:9080 26 restart: on-failure 27 command: dgraph alpha --my=alpha:7080 --lru_mb=2048 --zero=zero:5080 28 ratel: 29 image: dgraph/dgraph:latest 30 ports: 31 - 8000:8000 32 command: dgraph-ratel