Skip to content

Instantly share code, notes, and snippets.

@ecthiender
Last active February 16, 2020 12:50
Show Gist options
  • Save ecthiender/3ee1fbd13e701e93028c4d63552e9c7d to your computer and use it in GitHub Desktop.
Save ecthiender/3ee1fbd13e701e93028c4d63552e9c7d to your computer and use it in GitHub Desktop.
version: '2'
services:
timescale:
image: timescale/timescaledb:latest-pg10
restart: always
environment:
POSTGRES_PASSWORD: postgrespassword
volumes:
- db_data:/var/lib/postgresql/data
graphql-engine:
image: hasura/graphql-engine:v1.0.0-alpha20
ports:
- "8080:8080"
depends_on:
- "timescale"
restart: always
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:postgrespassword@timescale:5432/postgres
HASURA_GRAPHQL_ACCESS_KEY: mylongsecretkey
command:
- graphql-engine
- serve
- --enable-console
volumes:
db_data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment