mirror of
https://github.com/kou029w/_.git
synced 2025-01-30 22:08:02 +00:00
update
This commit is contained in:
parent
9aec2d3161
commit
40397ade0a
2 changed files with 5 additions and 6 deletions
2
hasura-rest/.gitignore
vendored
2
hasura-rest/.gitignore
vendored
|
@ -1 +1 @@
|
||||||
/.env
|
.env
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
version: "3"
|
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: postgres:13.4
|
image: postgres:14-alpine
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||||
volumes:
|
volumes:
|
||||||
- db_data:/var/lib/postgresql/data
|
- db_data:/var/lib/postgresql/data
|
||||||
hasura:
|
hasura:
|
||||||
image: hasura/graphql-engine:v2.0.9.cli-migrations-v3
|
image: hasura/graphql-engine:v2.10.1.cli-migrations-v3
|
||||||
depends_on: [db]
|
depends_on: [db]
|
||||||
environment:
|
environment:
|
||||||
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD}@db:5432/postgres
|
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD}@db:5432/postgres
|
||||||
|
@ -17,12 +16,12 @@ services:
|
||||||
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
|
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
|
||||||
HASURA_GRAPHQL_JWT_SECRET: ${HASURA_GRAPHQL_JWT_SECRET}
|
HASURA_GRAPHQL_JWT_SECRET: ${HASURA_GRAPHQL_JWT_SECRET}
|
||||||
volumes:
|
volumes:
|
||||||
- ./migrations:/hasura-migrations
|
|
||||||
- ./metadata:/hasura-metadata
|
- ./metadata:/hasura-metadata
|
||||||
|
- ./migrations:/hasura-migrations
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
postgrest:
|
postgrest:
|
||||||
image: postgrest/postgrest:v8.0.0
|
image: postgrest/postgrest:v10.0.0
|
||||||
depends_on: [db]
|
depends_on: [db]
|
||||||
environment:
|
environment:
|
||||||
PGRST_DB_URI: postgres://postgres:${POSTGRES_PASSWORD}@db:5432/postgres
|
PGRST_DB_URI: postgres://postgres:${POSTGRES_PASSWORD}@db:5432/postgres
|
Loading…
Add table
Reference in a new issue