-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yaml
40 lines (35 loc) · 1013 Bytes
/
docker-compose.yaml
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.7'
volumes:
prometheus_data: { }
services:
prometheus:
image: prom/prometheus:v2.1.0
container_name: prometheus
hostname: prometheus
volumes:
- ./prometheus/:/etc/prometheus/
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yaml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
ports:
- "9090:9090"
sendgrid-stats-exporter:
# image:
build:
context: .
dockerfile: Dockerfile
ports:
- "9154:9154"
healthcheck:
test: curl -s https://localhost:9154/-/healthy >/dev/null; if [[ $$? == 52 ]]; then echo 0; else echo 1; fi
interval: 30s
timeout: 5s
retries: 5
command: ""
environment:
DISABLE_EXPORTER_METRICS: "true"
SENDGRID_API_KEY: ${SENDGRID_API_KEY}
SENDGRID_USER_NAME: ${SENDGRID_USER_NAME}