forked from nats-io/nats-surveyor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (47 loc) · 1.41 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
version: "3"
networks:
monitor-net:
driver: bridge
services:
surveyor:
image: natsio/nats-surveyor:${SURVEYOR_DOCKER_TAG}
container_name: nats-surveyor
restart: always
volumes:
- $NATS_SURVEYOR_CREDS:/etc/surveyor/SYS.creds
- ./observations:/observations
- ./jetstream:/jetstream
command: --count ${NATS_SURVEYOR_SERVER_COUNT} --creds /etc/surveyor/SYS.creds -s "${NATS_SURVEYOR_SERVERS}" --accounts --observe /observations --jetstream /jetstream
networks:
- monitor-net
labels:
org.label-schema.group: "nats-monitoring"
prometheus:
image: prom/prometheus:${PROMETHEUS_DOCKER_TAG}
container_name: prometheus
restart: always
volumes:
- ./prometheus/:/etc/prometheus/
- $PROMETHEUS_STORAGE:/usr/local/share/prometheus
command: --config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/usr/local/share/prometheus
networks:
- monitor-net
labels:
org.label-schema.group: "nats-monitoring"
depends_on:
- surveyor
grafana:
image: grafana/grafana:${GRAFANA_DOCKER_TAG}
container_name: grafana
restart: always
ports:
- "3000:3000"
volumes:
- ./grafana/dashboards:/var/lib/grafana/dashboards
- ./grafana/provisioning:/etc/grafana/provisioning
networks:
- monitor-net
labels:
org.label-schema.group: "nats-monitoring"
depends_on:
- prometheus