forked from nats-io/jetstream
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
45 lines (41 loc) · 1.16 KB
/
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
40
41
42
43
44
---
version: '3'
services:
n1.example.net:
container_name: n1
image: synadia/jsm:nightly
dns_search: example.net
entrypoint: /nats-server
command: --name N1 --cluster_name JSC --js --sd /data --cluster nats://0.0.0.0:4245 --routes nats://n1:4245,nats://n2:4245,nats://n3:4245 -p 4222
networks:
- nats
ports:
- 4222:4222
volumes:
- ./jetstream-cluster/n1:/data
n2.example.net:
container_name: n2
image: synadia/jsm:nightly
dns_search: example.net
entrypoint: /nats-server
command: --name N2 --cluster_name JSC --js --sd /data --cluster nats://0.0.0.0:4245 --routes nats://n1:4245,nats://n2:4245,nats://n3:4245 -p 4222
networks:
- nats
ports:
- 4223:4222
volumes:
- ./jetstream-cluster/n2:/data
n3.example.net:
container_name: n3
image: synadia/jsm:nightly
dns_search: example.net
entrypoint: /nats-server
command: --name N3 --cluster_name JSC --js --sd /data --cluster nats://0.0.0.0:4245 --routes nats://n1:4245,nats://n2:4245,nats://n3:4245 -p 4222
networks:
- nats
ports:
- 4224:4222
volumes:
- ./jetstream-cluster/n3:/data
networks:
nats: {}