mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 17:14:08 +02:00
use supervisord in image
This commit is contained in:
parent
0105c60a09
commit
6fdadd9bad
9 changed files with 47 additions and 17 deletions
2
nix/image/configs/supervisor/blackfire.conf
Normal file
2
nix/image/configs/supervisor/blackfire.conf
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
[program:blackfire]
|
||||
command = blackfire agent
|
||||
2
nix/image/configs/supervisor/redis-plain.conf
Normal file
2
nix/image/configs/supervisor/redis-plain.conf
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
[program:redis]
|
||||
command = /bin/redis-server --protected-mode no
|
||||
6
nix/image/configs/supervisor/redis-tls.conf
Normal file
6
nix/image/configs/supervisor/redis-tls.conf
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[program:redis-tls]
|
||||
command = /bin/redis-server --protected-mode no \
|
||||
--tls-port 6379 --port 0 \
|
||||
--tls-cert-file /certificates/redis/server.crt \
|
||||
--tls-key-file /certificates/redis/server.key \
|
||||
--tls-ca-cert-file /certificates/redis/ca.crt
|
||||
25
nix/image/configs/supervisor/supervisord.conf
Normal file
25
nix/image/configs/supervisor/supervisord.conf
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
[supervisord]
|
||||
logfile = /dev/stdout
|
||||
logfile_maxbytes = 0
|
||||
nodaemon = true
|
||||
pidfile = /var/run/supervisord.pid
|
||||
|
||||
[unix_http_server]
|
||||
file = /var/run/supervisor.sock
|
||||
chmod = 0777
|
||||
|
||||
|
||||
[rpcinterface:supervisor]
|
||||
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|
||||
|
||||
[supervisorctl]
|
||||
serverurl = unix:///var/run/supervisor.sock
|
||||
|
||||
[program:nginx]
|
||||
command = /bin/nginx -c /etc/nginx.conf
|
||||
|
||||
[program:php-fpm]
|
||||
command = /bin/php-fpm --fpm-config /etc/php-fpm.conf
|
||||
|
||||
[include]
|
||||
files = enabled/*
|
||||
Loading…
Add table
Add a link
Reference in a new issue