-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
99 lines (93 loc) · 2.45 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
version: "3.8"
services:
trino-coordinator:
build:
context: dockerfiles
dockerfile: Dockerfile.trino
container_name: trino-coordinator
hostname: trino-coordinator
ports:
- "8080:8080"
- "9080:9080"
- "12345:12345"
deploy:
resources:
limits:
cpus: ${TRINO_COORDINATOR_CPUS}
memory: ${TRINO_COORDINATOR_MEMORY}
volumes:
- "${PWD}/coordinator/config.properties:/etc/trino/config.properties"
- "${PWD}/coordinator/jvm.config:/etc/trino/jvm.config"
- "${PWD}/coordinator/jmx.config.yaml:/etc/trino/jmx/config.yaml"
networks:
trino-internal:
healthcheck:
test:
[
"CMD-SHELL",
"curl -s -o /dev/null -w '%{http_code}' http://localhost:8080/v1/status | grep '200'",
]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
trino-worker:
image: trinodb/trino:433
deploy:
replicas: 2
resources:
limits:
cpus: ${TRINO_WORKER_CPUS}
memory: ${TRINO_WORKER_MEMORY}
volumes:
- "${PWD}/worker/config.properties:/etc/trino/config.properties"
networks:
trino-internal:
healthcheck:
test:
[
"CMD-SHELL",
"curl -s -o /dev/null -w '%{http_code}' http://localhost:8080/v1/status | grep '200'",
]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
prometheus:
image: prom/prometheus:v2.50.0 # fix version to avoid breaking changes in future releases
container_name: prometheus
hostname: prometheus
restart: unless-stopped
ports:
- "9090:9090"
volumes:
- "${PWD}/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml"
- prometheus-data:/prometheus
command:
- "--config.file=/etc/prometheus/prometheus.yml"
networks:
trino-internal:
monitoring:
grafana:
image: grafana/grafana-oss:9.5.15 # fix version to avoid breaking changes in future releases
container_name: grafana
hostname: grafana
restart: unless-stopped
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_PASSWORD}
- GF_SECURITY_ADMIN_USER=${GRAFANA_USER}
- GF_USERS_ALLOW_SIGN_UP=false
volumes:
- grafana-data:/var/lib/grafana
networks:
monitoring:
networks:
trino-internal:
driver: bridge
monitoring:
driver: bridge
volumes:
prometheus-data:
grafana-data: