-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (41 loc) · 1.33 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
version: "3.8"
services:
postgres:
image: postgres:15
environment:
POSTGRES_PASSWORD: postgrespassword
restart: always
ports:
- "127.0.0.1:15432:5432"
volumes:
- pg_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 2s
timeout: 3s
retries: 5
hasura:
image: hasura/graphql-engine:v2.35.0.cli-migrations-v3
env_file:
- .env
ports:
- 127.0.0.1:8080:8080
depends_on:
- "postgres"
restart: always
volumes:
- ./hasura:/var/schema
environment:
HASURA_GRAPHQL_MIGRATIONS_DIR: "/var/schema/migrations"
HASURA_GRAPHQL_METADATA_DIR: "/var/schema/metadata"
HASURA_GRAPHQL_DEV_MODE: "true"
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, query-log, http-log, webhook-log
HASURA_GRAPHQL_ENABLED_APIS: metadata,graphql,config,metrics
HASURA_GRAPHQL_ENABLE_CONSOLE: "true"
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:postgrespassword@postgres:5432/postgres
HASURA_GRAPHQL_METADATA_DATABASE_URL: postgres://postgres:postgrespassword@postgres:5432/postgres
HASURA_GRAPHQL_EXPERIMENTAL_FEATURES: "naming_convention"
HASURA_GRAPHQL_DEFAULT_NAMING_CONVENTION: graphql-default
HASURA_FF_NAMING_CONVENTION_SEP_2023: "True"
volumes:
pg_data: