forked from alcorexchange/alcor-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecosystem.config.js.orig
113 lines (108 loc) · 2.8 KB
/
ecosystem.config.js.orig
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
101
102
103
104
105
106
107
108
109
110
111
112
113
require('dotenv').config()
module.exports = {
apps: [
{
name: 'Alcor-nuxt-ui',
exec_mode: 'cluster',
instances: 2,
script: './node_modules/nuxt/bin/nuxt.js',
args: 'start',
restart_delay: 10000,
max_memory_restart: '999M',
env: {
NODE_ENV: 'production',
NUXT_PORT: 7000,
NUXT_HOST: '0.0.0.0',
},
},
{
name: 'Alcor-apiV2-server',
script: './lib/server/services/apiV2Service/index.js',
exec_mode: 'cluster',
instances: 2,
kill_timeout: 3000,
restart_delay: 10000,
env: {
NODE_ENV: 'production',
PORT: 7003,
},
},
{
name: 'Alcor-api-server',
script: './lib/server/services/apiService/index.js',
exec_mode: 'cluster',
instances: 2,
kill_timeout: 3000,
restart_delay: 10000,
max_memory_restart: '500M',
env: {
NODE_ENV: 'production',
PORT: 7001,
},
},
{
name: 'Alcor-api-server',
script: './lib/server/services/readOnlyApiService/index.js',
max_memory_restart: '1000M',
env: {
NODE_ENV: 'production',
PORT: 7001,
// LOCAL NODES HERE
//WAX_LOCAL_NODE: ''
//EOS_LOCAL_NODE: ''
//TELOS_LOCAL_NODE: ''
},
},
{
name: 'Alcor-ws-server',
script: './lib/server/services/socketService/index.js',
exec_mode: 'cluster',
instances: 4,
kill_timeout: 10000,
restart_delay: 10000,
env: {
NODE_ENV: 'production',
PORT: 7031,
PM2_PORT: 7002,
},
},
{
name: 'Alcor-updater',
script: './lib/server/services/updaterService/index.js',
cron_restart: '0 * * * *',
},
{
name: 'Alcor-ibc-usdt-wax-worker',
script: './lib/server/services/ibcService/usdt_prover.ts',
cron_restart: '0 * * * *',
},
{
name: 'Alcor-orderbook-service',
script: './lib/server/services/orderbookService/index.js',
restart_delay: 10000,
kill_timeout: 10000,
},
{
name: 'Alcor-ibc-usdt-wax-withdraw-worker',
script: './lib/server/services/ibcService/usdt_prover.js',
cron_restart: '0 * * * *',
},
{
name: 'Alcor-ibc-usdt-wax-deposit-worker',
script: './lib/server/services/ibcService/eosCexDepsitsWorker.js',
cron_restart: '0 * * * *',
},
{
name: 'Alcor-LSW-WAX-worker',
script: './lib/server/services/lswBotService/index.js',
env: {
LSW_NODEOS_ENDPOINT: 'https://wax-api.alcor.exchange',
LSW_CHAIN_ID: '1064487b3cd1a897ce03ae5b6a865651747e2e152090f99c1d19d44e01aea5a4',
LSW_CONTRACT_ACCOUNT: 'liquid.alcor',
LSW_PERMISSION: 'bot',
LSW_PROXY_NAME: 'top21.oig',
},
//cron_restart: '0 * * * *'
},
],
}