-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (49 loc) · 1.38 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
44
45
46
47
48
49
50
51
52
version: '3.6'
services:
postgres:
image: postgres
restart: always
ports:
- target: 5432
published: 5432
volumes:
- db_data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
hasura:
image: hasura/graphql-engine:latest.cli-migrations-v3
command: sh -c 'rm -rf /tmp/log/stdout.log && mkfifo /tmp/log/stdout.log && /bin/graphql-engine serve | tee /tmp/log/stdout.log'
ports:
- "8080:8080"
depends_on:
- "postgres"
restart: always
volumes:
- logs:/tmp/log
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:postgres@postgres:5432/postgres
HASURA_GRAPHQL_ENABLE_CONSOLE: "true"
HASURA_GRAPHQL_ADMIN_SECRET: test
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup,query-log,http-log,webhook-log,websocket-log
HASURA_GRAPHQL_LOG_LEVEL: info
hasura-datadog-adapter:
build:
context: ./
dockerfile: Dockerfile
image: hasura-datadog-adapter:dev
ports:
- "9090:9090"
depends_on:
- "hasura"
volumes:
- logs:/tmp/log
environment:
LOG_FILE: /tmp/log/stdout.log
HASURA_GRAPHQL_ADMIN_SECRET: test
HASURA_GRAPHQL_ENDPOINT: "http://hasura:8080"
EXCLUDE_COLLECTORS: "cron-triggers;event-triggers;scheduled-events"
volumes:
db_data:
logs: