forked from nats-io/nats-surveyor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (48 loc) · 1.4 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
version: "3"
networks:
monitor-net:
driver: bridge
services:
surveyor:
image: synadia/nats-surveyor:${SURVEYOR_DOCKER_TAG}
container_name: nats-surveyor
restart: always
volumes:
- $NATS_SURVEYOR_CREDS:/etc/surveyor/SYS.creds
- ./observations:/observations
- ./jetstream:/jetstream
entrypoint: /nats-surveyor
command: -c ${NATS_SURVEYOR_SERVER_COUNT} -creds /etc/surveyor/SYS.creds -s "${NATS_SURVEYOR_SERVERS}" -observe /observations
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