1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-30 22:08:02 +00:00
_/hasura-rest/compose.yml

35 lines
1.1 KiB
YAML
Raw Normal View History

2021-10-16 02:12:59 +09:00
services:
db:
2023-12-19 14:23:30 +09:00
image: postgres:16-alpine
2021-10-16 02:12:59 +09:00
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- db_data:/var/lib/postgresql/data
hasura:
2023-12-19 14:23:30 +09:00
image: hasura/graphql-engine:v2.36.1-ce.cli-migrations-v3.ubi
2021-10-16 02:12:59 +09:00
depends_on: [db]
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD}@db:5432/postgres
2021-10-16 22:20:02 +09:00
HASURA_GRAPHQL_ENABLE_TELEMETRY: "false"
2021-10-16 02:12:59 +09:00
HASURA_GRAPHQL_ENABLE_CONSOLE: "true"
HASURA_GRAPHQL_UNAUTHORIZED_ROLE: anonymous
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
HASURA_GRAPHQL_JWT_SECRET: ${HASURA_GRAPHQL_JWT_SECRET}
volumes:
- ./metadata:/hasura-metadata
2022-08-20 18:17:34 +09:00
- ./migrations:/hasura-migrations
2021-10-16 02:12:59 +09:00
ports:
- "8080:8080"
postgrest:
2023-12-19 14:23:30 +09:00
image: postgrest/postgrest:v12.0.1
2021-10-16 02:12:59 +09:00
depends_on: [db]
environment:
PGRST_DB_URI: postgres://postgres:${POSTGRES_PASSWORD}@db:5432/postgres
PGRST_DB_SCHEMA: public
PGRST_DB_ANON_ROLE: anonymous
PGRST_JWT_SECRET: ${JWT_SECRET}
ports:
- "3000:3000"
volumes:
db_data: