-
Notifications
You must be signed in to change notification settings - Fork 1
/
supervisor.conf
87 lines (80 loc) · 2.75 KB
/
supervisor.conf
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
[supervisord]
nodaemon=true
user=root
pidfile=/var/run/supervisord.pid
logfile=/var/log/supervisor/supervisord.log
logfile_maxbytes=50MB
logfile_backups=7
loglevel=debug
[program:user-entrypoint]
environment=HOME="/root",USER="root"
command=bash /user-entrypoint.sh
autorestart=false
priority=200
user=root
redirect_stderr=true
stdout_logfile=/var/log/supervisor/user-entrypoint.log
stdout_logfile_maxbytes=50MB
stdout_logfile_backups=7
[program:code-server]
environment=HOME="/root",USER="root",CODER_PORT="%(ENV_CODER_PORT)s",NOVNC_PORT="%(ENV_NOVNC_PORT)s",API_PORT="%(ENV_API_PORT)s",WEB_PORT="%(ENV_WEB_PORT)s"
autorestart=true
priority=100
user=root
redirect_stderr=true
command=code-server --bind-addr=0.0.0.0:%(ENV_CODER_PORT)s --auth=none
stdout_logfile=/var/log/supervisor/code-server.log
stdout_logfile_maxbytes=50MB
stdout_logfile_backups=7
[program:codx-junior-api]
environment=HOME="/root",USER="root",CODER_PORT="%(ENV_CODER_PORT)s",NOVNC_PORT="%(ENV_NOVNC_PORT)s",API_PORT="%(ENV_API_PORT)s",WEB_PORT="%(ENV_WEB_PORT)s"
autorestart=true
priority=100
user=root
redirect_stderr=true
directory=/projects/codx-junior
command=bash /projects/codx-junior/run_api.sh
stdout_logfile=/var/log/supervisor/codx-junior-api.log
stdout_logfile_maxbytes=50MB
stdout_logfile_backups=7
[program:codx-junior-web]
environment=HOME="/root",USER="root",CODER_PORT="%(ENV_CODER_PORT)s",NOVNC_PORT="%(ENV_NOVNC_PORT)s",API_PORT="%(ENV_API_PORT)s",WEB_PORT="%(ENV_WEB_PORT)s"
autorestart=true
priority=100
user=root
redirect_stderr=true
directory=/projects/codx-junior
command=bash /projects/codx-junior/run_client.sh
stdout_logfile=/var/log/supervisor/codx-junior-web.log
stdout_logfile_maxbytes=50MB
stdout_logfile_backups=7
[program:novnc]
environment=HOME="/root",USER="root",CODER_PORT="%(ENV_CODER_PORT)s",NOVNC_PORT="%(ENV_NOVNC_PORT)s",API_PORT="%(ENV_API_PORT)s",WEB_PORT="%(ENV_WEB_PORT)s"
autorestart=false
priority=100
user=root
redirect_stderr=true
command=websockify --web=/usr/share/novnc %(ENV_NOVNC_PORT)s localhost:5901
stdout_logfile=/var/log/supervisor/novnc.log
stdout_logfile_maxbytes=50MB
stdout_logfile_backups=7
[program:vncserver]
environment=HOME="/root",USER="root",CODER_PORT="%(ENV_CODER_PORT)s",NOVNC_PORT="%(ENV_NOVNC_PORT)s",API_PORT="%(ENV_API_PORT)s",WEB_PORT="%(ENV_WEB_PORT)s"
autorestart=false
priority=100
user=root
redirect_stderr=true
command=tigervncserver :1 -name codx-junior -depth 24 -geometry %(ENV_DISPLAY_WIDTH)sx%(ENV_DISPLAY_HEIGHT)s
stdout_logfile=/var/log/supervisor/vncserver.log
stdout_logfile_maxbytes=50MB
stdout_logfile_backups=7
[program:lxde]
environment=HOME="/root",USER="root"
autorestart=false
priority=100
user=root
redirect_stderr=true
command=exec startlxde
stdout_logfile=/var/log/supervisor/lxde.log
stdout_logfile_maxbytes=50MB
stdout_logfile_backups=7