-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yaml
46 lines (43 loc) · 1.08 KB
/
docker-compose.yaml
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
44
45
46
version: '3.8'
services:
db:
image: postgres:13
environment:
- POSTGRES_DB=carnet_de_bord
- POSTGRES_USER=cdb
- POSTGRES_PASSWORD=test
ports:
- '5432:5432'
volumes:
- cdb-pgdata:/var/lib/postgresql/data
command:
- postgres
- -c
- fsync=off
- -c
- synchronous_commit=off
- -c
- full_page_writes=off
hasura:
image: hasura/graphql-engine:v2.31.0-ce.cli-migrations-v3
extra_hosts:
host.docker.internal: host-gateway
volumes:
- ./hasura/migrations:/hasura-migrations
- ./hasura/metadata:/hasura-metadata
- ./hasura/seeds:/seeds
- ./hasura/config.yaml:/config.yaml
ports:
- '${HASURA_ENDPOINT_PORT:-5000}:8080'
depends_on:
- 'db'
stop_signal: SIGKILL
env_file:
- .env
environment:
HASURA_GRAPHQL_DEV_MODE: 'true'
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, query-log, webhook-log, websocket-log
HASURA_GRAPHQL_ENABLE_TELEMETRY: 'false'
HASURA_GRAPHQL_ENABLE_CONSOLE: 'true'
volumes:
cdb-pgdata: