Split supervisor config file
This commit is contained in:
parent
10d9ea57e3
commit
907ee3b1a5
@ -32,7 +32,11 @@ RUN crontab -u znc /tmp/crontab
|
||||
RUN rm /tmp/crontab
|
||||
|
||||
# Install startup stuff
|
||||
COPY daemons.conf /etc/supervisor/conf.d/daemons.conf
|
||||
COPY supervisor.conf /etc/supervisor/conf.d/supervisor.conf
|
||||
COPY nginx.conf /etc/supervisor/conf.d/nginx.conf
|
||||
COPY cron.conf /etc/supervisor/conf.d/cron.conf
|
||||
COPY znc.conf /etc/supervisor/conf.d/znc.conf
|
||||
COPY sshd.conf /etc/supervisor/conf.d/sshd.conf
|
||||
COPY start /start
|
||||
RUN chmod +x /start
|
||||
|
||||
@ -40,3 +44,4 @@ RUN chmod +x /start
|
||||
EXPOSE 22
|
||||
# nginx
|
||||
EXPOSE 80
|
||||
|
||||
|
4
cron.conf
Normal file
4
cron.conf
Normal file
@ -0,0 +1,4 @@
|
||||
[program:cron]
|
||||
command=/usr/sbin/cron -f
|
||||
autorestart=true
|
||||
|
19
daemons.conf
19
daemons.conf
@ -1,19 +0,0 @@
|
||||
[supervisord]
|
||||
nodaemon=true
|
||||
|
||||
[program:sshd]
|
||||
command=/usr/sbin/sshd -D
|
||||
autorestart=true
|
||||
|
||||
[program:znc]
|
||||
command=su -c "/usr/bin/znc --foreground" znc
|
||||
autorestart=true
|
||||
|
||||
[program:cron]
|
||||
command=/usr/sbin/cron -f
|
||||
autorestart=true
|
||||
|
||||
[program:nginx]
|
||||
command=/usr/sbin/nginx
|
||||
autorestart=true
|
||||
|
4
nginx.conf
Normal file
4
nginx.conf
Normal file
@ -0,0 +1,4 @@
|
||||
[program:nginx]
|
||||
command=/usr/sbin/nginx
|
||||
autorestart=true
|
||||
|
4
sshd.conf
Normal file
4
sshd.conf
Normal file
@ -0,0 +1,4 @@
|
||||
[program:sshd]
|
||||
command=/usr/sbin/sshd -D
|
||||
autorestart=true
|
||||
|
3
supervisor.conf
Normal file
3
supervisor.conf
Normal file
@ -0,0 +1,3 @@
|
||||
[supervisord]
|
||||
nodaemon=true
|
||||
|
Loading…
Reference in New Issue
Block a user