-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yaml
More file actions
125 lines (118 loc) · 3.56 KB
/
compose.yaml
File metadata and controls
125 lines (118 loc) · 3.56 KB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
volumes:
grafana_data: {}
postgres_data: {}
services:
ndc-loki:
build:
context: .
ports:
- 8080:8080
volumes:
- ./tests/configuration:/etc/connector:ro
extra_hosts:
- local.hasura.dev=host-gateway
environment:
CONNECTION_URL: http://gateway:3100
LOKI_ORG_ID: ""
LOKI_TOKEN: ""
OTEL_EXPORTER_OTLP_ENDPOINT: http://local.hasura.dev:4317
OTEL_METRICS_EXPORTER: prometheus
HASURA_LOG_LEVEL: debug
postgres:
image: postgres:17.0
restart: always
ports:
- "5432"
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: postgrespassword
graphql-engine:
image: hasura/graphql-engine:v2.44.0.cli-migrations-v3
ports:
- "8081:8080"
restart: always
depends_on:
postgres:
required: true
condition: service_started
volumes:
- ./tests/graphql-engine/migrations:/hasura-migrations
- ./tests/graphql-engine/metadata:/hasura-metadata
environment:
## postgres database to store Hasura metadata
HASURA_GRAPHQL_METADATA_DATABASE_URL: postgres://postgres:postgrespassword@postgres:5432/postgres
DATA_DATABASE_URL: postgres://postgres:postgrespassword@postgres:5432/postgres
## enable the console served by server
HASURA_GRAPHQL_ENABLE_CONSOLE: "true" # set to "false" to disable console
## enable debugging mode. It is recommended to disable this in production
HASURA_GRAPHQL_DEV_MODE: "true"
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup,http-log,webhook-log,websocket-log,query-log
## uncomment next line to run console offline (i.e load console assets from server instead of CDN)
# HASURA_GRAPHQL_CONSOLE_ASSETS_DIR: /srv/console-assets
## uncomment next line to set an admin secret
# HASURA_GRAPHQL_ADMIN_SECRET: randomsecret
loki:
image: grafana/loki:3.2.0
command: "-config.file=/etc/loki/config.yaml"
ports:
- "3131:3100"
- 7946
- 9095
volumes:
- ./tests/loki/loki-config.yaml:/etc/loki/config.yaml
healthcheck:
test:
[
"CMD-SHELL",
"wget --no-verbose --tries=1 --spider http://localhost:3100/ready || exit 1",
]
interval: 10s
timeout: 5s
retries: 5
alloy:
image: grafana/alloy:latest
volumes:
- ./tests/loki/alloy-local-config.yaml:/etc/alloy/config.alloy:ro
- /var/run/docker.sock:/var/run/docker.sock
command: run --server.http.listen-addr=0.0.0.0:12345 --storage.path=/var/lib/alloy/data /etc/alloy/config.alloy
ports:
- 12345:12345
grafana:
image: grafana/grafana:latest
environment:
- GF_PATHS_PROVISIONING=/etc/grafana/provisioning
- GF_SECURITY_ADMIN_PASSWORD=admin
ports:
- "3001:3000"
volumes:
- grafana_data:/var/lib/grafana
- ./tests/grafana/provisioning:/etc/grafana/provisioning:ro
- ./tests/grafana/dashboards:/var/lib/grafana/dashboards:ro
healthcheck:
test:
[
"CMD-SHELL",
"wget --no-verbose --tries=1 --spider http://localhost:3000/api/health || exit 1",
]
interval: 10s
timeout: 5s
retries: 5
gateway:
image: nginx:latest
depends_on:
- loki
volumes:
- ./tests/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
entrypoint:
- sh
- -euc
- |
/docker-entrypoint.sh nginx -g "daemon off;"
ports:
- "3100:3100"
healthcheck:
test: ["CMD", "service", "nginx", "status"]
interval: 10s
timeout: 5s
retries: 5