-
Notifications
You must be signed in to change notification settings - Fork 2
/
nats-streaming.yml
87 lines (77 loc) · 2.15 KB
/
nats-streaming.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
version: '3.5'
services:
nats-streaming:
image: local/nats-streaming
build:
context: ./backend/nats-streaming
hostname: nats-streaming
container_name: nats-streaming
networks:
- dev-net
ports:
- "4222:4222"
- "6222:6222"
- "8222:8222"
env_file:
- ./backend/nats-streaming/.env
volumes:
- nats-stream01:/nats/storage
volumes:
nats-stream01:
driver: local
driver_opts:
type: none
device: /volume/nats/stream01
o: bind
# natsboard:
# image: local/natsboard
# build:
# context: ./natsboard/natsboard
# hostname: natsboard
# container_name: natsboard
# networks:
# - dev-net
# - monitor-net
# 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