-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (34 loc) · 991 Bytes
/
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
version: "3"
services:
cratedb:
image: "crate"
command: ["crate", "-Cdiscovery.type=single-node", "-Ccluster.routing.allocation.disk.threshold_enabled=false"]
ports:
- "4200:4200"
- "5432:5432"
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:4200"]
start_period: 3s
interval: 0.5s
retries: 30
timeout: 30s
prometheus:
image: "prom/prometheus"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
cratedb-prometheus-adapter:
image: "ghcr.io/crate/cratedb-prometheus-adapter"
volumes:
- ./cratedb-prometheus-adapter.yml:/etc/cratedb-prometheus-adapter/config.yml
ports:
- "9268:9268"
provision_database:
image: "crate"
command: ["sh", "-c", "cat /tmp/metrics-ddl.sql | crash --hosts cratedb:4200"]
volumes:
- ./metrics-ddl.sql:/tmp/metrics-ddl.sql
depends_on:
cratedb:
condition: service_healthy