Spaces:
Paused
Paused
Create supervisord.conf
Browse files- supervisord.conf +26 -0
supervisord.conf
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[supervisord]
|
2 |
+
nodaemon=true
|
3 |
+
|
4 |
+
[program:redis]
|
5 |
+
command=redis-server --appendonly yes
|
6 |
+
priority=10
|
7 |
+
autorestart=true
|
8 |
+
|
9 |
+
[program:room]
|
10 |
+
directory=/opt/room
|
11 |
+
command=node src/server.js --port ${ROOM_PORT}
|
12 |
+
environment=PORT=${ROOM_PORT}
|
13 |
+
priority=20
|
14 |
+
autorestart=true
|
15 |
+
|
16 |
+
[program:storage]
|
17 |
+
directory=/opt/storage
|
18 |
+
command=node dist/index.js --port ${STORAGE_PORT} --redisUrl redis://127.0.0.1:${REDIS_PORT}
|
19 |
+
environment=PORT=${STORAGE_PORT}
|
20 |
+
priority=30
|
21 |
+
autorestart=true
|
22 |
+
|
23 |
+
[program:nginx]
|
24 |
+
command=nginx -g "daemon off;"
|
25 |
+
priority=40
|
26 |
+
autorestart=true
|