Last active
May 7, 2021 09:25
-
-
Save deathemperor/b1e8e0f0fc578d497a679adf8083840b to your computer and use it in GitHub Desktop.
hasura docker compose postgres 12
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.3' | |
services: | |
postgres: | |
container_name: postgres | |
image: postgres:12 | |
restart: always | |
ports: | |
- 5432:5432 | |
volumes: | |
- db_data:/var/lib/postgresql/data | |
environment: | |
POSTGRES_PASSWORD: postgrespassword | |
graphql-engine: | |
container_name: hasura | |
image: hasura/graphql-engine:v2.0.0-alpha.10 | |
depends_on: | |
- 'postgres' | |
ports: | |
- 8080:8080 | |
restart: always | |
environment: | |
- HASURA_GRAPHQL_DATABASE_URL=postgres://postgres:postgrespassword@postgres:5432/postgres | |
- HASURA_GRAPHQL_ENABLE_CONSOLE=true | |
- HASURA_GRAPHQL_ENABLED_LOG_TYPES=startup, http-log, webhook-log, websocket-log, query-log | |
- HASURA_GRAPHQL_ADMIN_SECRET=1 | |
- HASURA_GRAPHQL_UNAUTHORIZED_ROLE=anonymous | |
- HASURA_GRAPHQL_JWT_SECRET={"type":"HS512","key":"WdVdpbsREUW/uAoIaC3GwQanvaxxn1GBZCvnlFxOU60IXvMoqO5snIY8OpxbR99c32WzJ3XmqeKsb7NVb1h5A9QQxHzaFac6RbtFR0D6PiiWNIXbQILRLAS+pJGIb41cVuolOwEYkPaQTyvqO+8B+asD3hYWSJlV/BcjImYnESjwOGdtBMNi5giu1OwH/iANj25xiGZDScjrU4HAoL4ALOTg+QHamX8cvtEiQ/NWgni7c5lCQT1rHjz2ooEXJyyVvKX0iSkq18jAmQaWvG1p2lZL4LbZ/hVLS7jgCSdr+1F7P+S9NZW7sLhXImCP6mq+TwLO7J8l1EC8MPwvQi1gHg=="} | |
- HASURA_GRAPHQL_EXPERIMENTAL_FEATURES=inherited_roles | |
# Names our volume | |
volumes: | |
db_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment