-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecosystem.config.js
82 lines (82 loc) · 1.82 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
78
79
80
81
82
module.exports = {
apps: [
{
name: 'infrastructure-service',
cwd: 'infrastructure-service',
script: 'node dist/main.js',
autorestart: true,
env_production: {
PORT: 3001,
TCP_PORT: 3000,
},
env_fly: {
PORT: 3001,
TCP_PORT: 3000,
CONFIG_FILE: 'config.fly.yaml',
},
},
{
name: 'infrastructure-bff',
cwd: 'infrastructure-bff',
script: 'node dist/main.js',
autorestart: true,
env_production: {
PORT: 3002,
INFRASTRUCTURE_SERVICE_PORT: 3000,
},
env_fly: {
PORT: 3002,
INFRASTRUCTURE_SERVICE_PORT: 3000,
CONFIG_FILE: 'config.fly.yaml',
},
},
{
name: 'identity-server',
cwd: 'identity-server',
script: 'node dist/main.js',
autorestart: true,
env_production: {
PORT: 3003,
GLOBAL_PREFIX_URI: '/identity',
OIDC_PATH: '/oauth2',
INFRASTRUCTURE_SERVICE_PORT: 3000,
},
env_fly: {
PORT: 3003,
OIDC_PATH: '/oauth2',
INFRASTRUCTURE_SERVICE_PORT: 3000,
CONFIG_FILE: 'config.fly.yaml',
},
},
{
name: 'static-content',
cwd: 'content',
script: 'serve',
env_production: {
PM2_SERVE_PATH: '.',
PM2_SERVE_PORT: 3004,
},
env_fly: {
PM2_SERVE_PATH: '.',
PM2_SERVE_PORT: 3004,
},
},
{
name: 'web',
cwd: 'web',
script: 'serve',
env_production: {
PM2_SERVE_PATH: '.',
PM2_SERVE_PORT: 3011,
PM2_SERVE_SPA: 'true',
PM2_SERVE_HOMEPAGE: '/index.html',
},
env_fly: {
PM2_SERVE_PATH: '.',
PM2_SERVE_PORT: 3011,
PM2_SERVE_SPA: 'true',
PM2_SERVE_HOMEPAGE: '/index.html',
},
},
],
};