Add docker deployment
Some checks failed
build docker image / docker-build (push) Has been cancelled

This commit is contained in:
2024-11-04 16:45:27 +02:00
parent 7aaa365cc9
commit 77364f8e25
7 changed files with 192 additions and 46 deletions

View File

@ -0,0 +1,30 @@
server {
listen 80;
server_name default;
root /var/www/html;
index index.php;
client_max_body_size 5m;
client_body_timeout 60;
location / {
try_files $uri $uri/ @rewrite;
}
location @rewrite {
rewrite ^/(.*)$ /index.php;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass unix:/run/php/php-fpm.sock;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
try_files $uri /index.php;
expires max;
log_not_found off;
}
}

View File

@ -0,0 +1,29 @@
[supervisord]
logfile=/var/log/supervisord.log
logfile_maxbytes=50MB
childlogdir=/var/log
pidfile=/var/run/supervisord.pid
nodaemon=true
user=root
[supervisorctl]
[program:misc-rsyslog]
command=/usr/sbin/rsyslogd -n
autostart=true
autorestart=true
stdout_logfile=/var/log/supervisor/%(program_name)s.log
stderr_logfile=/var/log/supervisor/%(program_name)s.log
[group:webserver]
programs=webserver-nginx,webserver-phpfpm
[program:webserver-nginx]
command=/usr/sbin/nginx -g 'daemon off;'
autostart=true
autorestart=true
[program:webserver-phpfpm]
command=/usr/local/sbin/php-fpm --nodaemonize --fpm-config /usr/local/etc/php-fpm.d/www.conf
autostart=true
autorestart=true