forked from cardano-foundation/cardano-rosetta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecosystem.config.js
74 lines (74 loc) · 2.08 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
module.exports = {
apps : [
{
name: 'postgres',
script: `/usr/lib/postgresql/12/bin/postgres`,
args: [
'-D',
'/data/postgresql',
'-c',
`config_file=/etc/postgresql/12/main/postgresql.conf`
],
autorestart: true,
exec_mode: 'fork_mode',
kill_timeout : 15000,
error_file: 'NULL',
out_file: 'NULL'
},
{
name: 'cardano-node',
script: '/usr/local/bin/cardano-node',
args: [
'run',
'--config', '/config/cardano-node/config.json',
'--database-path', '/data/node-db',
'--socket-path', '/ipc/node.socket',
'--topology', '/config/cardano-node/topology.json'
],
autorestart: true,
exec_mode: 'fork_mode',
kill_timeout : 30000,
error_file: 'NULL',
out_file: 'NULL'
},
{
name: 'cardano-db-sync',
script: '/scripts/start_cardano-db-sync.sh',
args: [
'/usr/local/bin/cardano-db-sync'
],
autorestart: true,
env: {
PGPASSFILE: '/config/cardano-db-sync/pgpass'
},
exec_mode: 'fork_mode',
kill_timeout : 15000,
error_file: 'NULL',
out_file: 'NULL'
},
{
name: 'cardano-rosetta-server',
script: '/cardano-rosetta-server/dist/src/server/index.js',
autorestart: true,
env: {
BIND_ADDRESS: '0.0.0.0',
CARDANO_CLI_PATH: '/usr/local/bin/cardano-cli',
CARDANO_NODE_PATH: '/usr/local/bin/cardano-node',
CARDANO_NODE_SOCKET_PATH: '/ipc/node.socket',
DB_CONNECTION_STRING: 'socket://postgres:*@/var/run/postgresql?db=cexplorer',
DEFAULT_RELATIVE_TTL: process.env.DEFAULT_RELATIVE_TTL,
GENESIS_SHELLEY_PATH: '/config/genesis/shelley.json',
LOGGER_LEVEL: process.env.LOGGER_MIN_SEVERITY,
NODE_ENV: 'development',
PAGE_SIZE: process.env.PAGE_SIZE,
PORT: 8080,
TOPOLOGY_FILE_PATH: '/config/cardano-node/topology.json'
},
env_production: {
NODE_ENV: 'production'
},
error_file: 'NULL',
out_file: 'NULL'
}
]
}