Table of Contents
Local setup
Requirements
If you're on Linux or Mac, you already have a POSIX-compliant terminal.
Running the API locally
docker-compose up --detach
When running for the first time, you might get this message:
ERROR: The image for the service you're trying to recreate has been removed. If you continue, volume data could be lost. Consider backing up your data before continuing.
Continue with the new image? [yN]
In which case you can go ahead and type y
and continue.
To stop the API:
docker-compose down
Published ports
Port numbers published to your host machine.
Viewing the log outputs from the services
# Displaying all logs.
docker-compose logs
# Displaying logs for the API service.
docker-compose logs api
# Displaying logs for several services, e.g. API and Dgraph Alpha
docker-compose logs api alpha
# Tailing the last 5 lines of the logs from the API service.
docker-compose logs --tail 5 api
# Following the logs for the API service as they come in (CMD/CTRL+C to exit).
docker-compose logs --follow api
# Following the logs for several services as they come in, e.g. Dgraph Alpha and Dgraph Zero.
docker-compose logs --follow api alpha zero
For more details, see the docs or run the command docker-compose logs --help
Reporting Bugs
TODO
Reporting Security Issues
TODO
License
GNU General Public License v3 © Kwahu & Cayes