Skip to content
This repository has been archived by the owner on Sep 13, 2018. It is now read-only.

Adds docker-compose #2

Merged
merged 4 commits into from Jun 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
26 changes: 26 additions & 0 deletions docker-compose/README.md
@@ -0,0 +1,26 @@
# Hasura GraphQL Engine using docker-compose

## Prerequisites

- [Docker](https://docs.docker.com/install/)
- [Docker Compose](https://docs.docker.com/compose/install/#install-compose)

## Deploy

- Run `docker-compose up -d` inside `docker-compose` directory to start the Hasura GraphQL Engine.

## Configure

(Assuming you have already executed `hasura init`)

- Edit `config.yaml` and add `endpoint`
```yaml
endpoint: http://localhost:8080
```

## Console

Open the console and start exploring APIs / manage tables/views:
```bash
hasura console
```
23 changes: 23 additions & 0 deletions docker-compose/docker-compose.yaml
@@ -0,0 +1,23 @@
version: '3.6'
services:
postgres:
image: postgres
environment:
- "POSTGRES_PASSWORD:mysecretpassword"
volumes:
- db_data:/var/lib/postgresql/data
raven:
image: hasuranightly/raven:94a0141
ports:
- "8080:8080"
depends_on:
- "postgres"
restart: always
environment:
- "POSTGRES_PASSWORD:mysecretpassword"
command: >
/bin/sh -c "
raven --database-url postgres://postgres:$${POSTGRES_PASSWORD}@postgres:5432/postgres serve;
"
volumes:
db_data: