-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose.yml
82 lines (76 loc) · 2.18 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
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-metric-adapter:
build:
context: ./
dockerfile: Dockerfile
image: metric:latest
ports:
- "9090:9090"
depends_on:
- "hasura"
- "jaeger"
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"
OPENTEL_ENDPOINT: "http://host.docker.internal:4317"
prometheus:
image: prom/prometheus:v2.30.3
ports:
- 9000:9090
volumes:
- ./example/prometheus:/etc/prometheus
- prometheus-data:/prometheus
command: --web.enable-lifecycle --config.file=/etc/prometheus/prometheus.yml
grafana:
image: grafana/grafana:latest
ports:
- 3000:3000
volumes:
- ./example/grafana/provisioning:/etc/grafana/provisioning
- ./example/grafana/dashboards:/dashboards
jaeger:
image: jaegertracing/all-in-one:latest
environment:
- COLLECTOR_OTLP_ENABLED=true
ports:
- "6831:6831/udp" # UDP port for Jaeger agent
- "16686:16686" # Web UI
- "14268:14268" # HTTP port for spans
- "4317:4317"
volumes:
db_data:
logs:
prometheus-data: