Created
June 10, 2020 23:13
-
-
Save pdbradley/eb74604245d978fa249bb97b4306f122 to your computer and use it in GitHub Desktop.
hasura docker compose rails postgres sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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