2018-09-13 12:33:13 +03:00
|
|
|
version: '3.6'
|
|
|
|
services:
|
|
|
|
postgres:
|
|
|
|
image: postgres
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- db_data:/var/lib/postgresql/data
|
|
|
|
graphql-engine:
|
2018-11-23 16:39:02 +03:00
|
|
|
image: hasura/graphql-engine:v1.0.0-alpha30
|
2018-09-13 12:33:13 +03:00
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
|
|
|
depends_on:
|
|
|
|
- "postgres"
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:@postgres:5432/postgres
|
2018-11-23 12:17:31 +03:00
|
|
|
HASURA_GRAPHQL_ENABLE_CONSOLE: "true" # set to "false" to disable console
|
|
|
|
## uncomment next line to set an access key
|
|
|
|
# HASURA_GRAPHQL_ACCESS_KEY: mysecretaccesskey
|
2018-09-13 12:33:13 +03:00
|
|
|
volumes:
|
|
|
|
db_data:
|