Skip to content

Instantly share code, notes, and snippets.

@pdbradley
Created June 10, 2020 23:13
Show Gist options
  • Save pdbradley/eb74604245d978fa249bb97b4306f122 to your computer and use it in GitHub Desktop.
Save pdbradley/eb74604245d978fa249bb97b4306f122 to your computer and use it in GitHub Desktop.
hasura docker compose rails postgres sample
version: '3.6'
services:
postgres:
image: postgres:12
volumes:
- './postgres:/var/lib/postgresql/data'
environment:
POSTGRES_PASSWORD: "nargh"
web:
build: .
command: bin/rails server --port 3000 --binding 0.0.0.0
ports:
- "3000:3000"
working_dir: /app
depends_on:
- postgres
volumes:
- .:/app
hasura:
restart: always
image: hasura/graphql-engine:latest
ports:
- "8080:8080"
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:nargh@postgres:5432/bleah_dev
HASURA_GRAPHQL_ENABLE_CONSOLE: "true"
depends_on:
- "postgres"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment