This repository has been archived by the owner on Apr 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathecosystem.config.js
77 lines (77 loc) · 1.74 KB
/
ecosystem.config.js
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
module.exports = {
apps: [
{
name: 'worker',
script: './worker.js',
instances: 1,
autorestart: true,
watch: "worker.js",
max_memory_restart: '1G',
kill_timeout: 30000,
exec_mode: "cluster",
},
{
name: 'controller',
script: './controller.js',
autorestart: true,
watch: "controller.js",
max_memory_restart: '1G',
kill_timeout: 10000,
exec_mode: "cluster",
},
{
name: "localstore",
script: "./start-localstore.sh",
autorestart: true,
watch: [ "localstore.js", "datastore.js" ],
kill_timeout: 10000,
},
{
name: 'remotestore',
script: "./start-remotestore.sh",
autorestart: true,
watch: "remotestore.js",
kill_timeout: 10000,
},
{
name: "nats-local",
script: "./start-nats-local.sh",
autorestart: true,
watch: false,
max_memory_restart: '1G',
},
{
name: "nats-remote",
script: "./start-nats-remote.sh",
autorestart: true,
watch: false,
max_memory_restart: '1G',
},
{
name: "nats-local-board",
script: "./node_modules/.bin/natsboard",
args: "--nats-mon-url http://localhost:8222 --port 8223",
autorestart: true,
watch: false,
max_memory_restart: '1G',
},
{
name: "nats-remote-board",
script: "./node_modules/.bin/natsboard",
args: "--nats-mon-url http://localhost:9222 --port 9223",
autorestart: true,
watch: false,
max_memory_restart: '1G',
},
{
name: "minio",
script: "./start-minio.sh",
autorestart: true
},
{
name: "consul",
script: "./start-consul.sh",
autorestart: true
}
],
};