-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
100 lines (96 loc) · 2.22 KB
/
Copy pathdocker-compose.test.yml
File metadata and controls
100 lines (96 loc) · 2.22 KB
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
services:
nats-1:
image: nats:2.10-alpine
network_mode: host
command:
- "--cluster_name"
- "NATS_TEST"
- "--cluster"
- "nats://127.0.0.1:16222"
- "--routes"
- "nats://127.0.0.1:16223,nats://127.0.0.1:16224"
- "--addr"
- "127.0.0.1"
- "--port"
- "14222"
- "--http_port"
- "18222"
- "--js"
- "-D"
- "--server_name"
- "nats-1"
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:18222/healthz"]
interval: 1s
timeout: 3s
retries: 5
nats-2:
image: nats:2.10-alpine
network_mode: host
command:
- "--cluster_name"
- "NATS_TEST"
- "--cluster"
- "nats://127.0.0.1:16223"
- "--routes"
- "nats://127.0.0.1:16222,nats://127.0.0.1:16224"
- "--addr"
- "127.0.0.1"
- "--port"
- "14223"
- "--http_port"
- "18223"
- "--js"
- "-D"
- "--server_name"
- "nats-2"
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:18223/healthz"]
interval: 1s
timeout: 3s
retries: 5
nats-3:
image: nats:2.10-alpine
network_mode: host
command:
- "--cluster_name"
- "NATS_TEST"
- "--cluster"
- "nats://127.0.0.1:16224"
- "--routes"
- "nats://127.0.0.1:16222,nats://127.0.0.1:16223"
- "--addr"
- "127.0.0.1"
- "--port"
- "14224"
- "--http_port"
- "18224"
- "--js"
- "-D"
- "--server_name"
- "nats-3"
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:18224/healthz"]
interval: 1s
timeout: 3s
retries: 5
nats-token-auth:
image: nats:2.10-alpine
network_mode: host
command:
- "--addr"
- "127.0.0.1"
- "--port"
- "14225"
- "--http_port"
- "18225"
- "--auth"
- "test_token_123"
- "-D"
- "--server_name"
- "nats-token-auth"
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:18225/healthz"]
interval: 1s
timeout: 3s
retries: 5