Ich weiß nicht wie ihr alle das wbb laufen lasst, aber vielleicht hilft das hier dem einen oder anderen.
Bei mir laufen redis, mysql und das wbb als Container und theoretisch könnte ich sie damit auch in die cloud werfen.
Leider ist das wbb etwas anspruchvoller was moderne setups angeht und zickt gerne etwas herum.
FROM alpine:edge # wbb dependencies # config files # dirty hack to get redis enabled # ensure access for processes running via nobody user # setup document root # surrender root access and switch to least privilege principle # setup wbb application # expose # have supervisord start nginx & php-fpm # setup simple healthcheck |
php-fpm.ini
[global] [www] |
supervisord.conf
[supervisord] [program:php-fpm] [program:nginx] |
nginx.conf
worker_processes 1; events { http { log_format main_timed '$remote_addr - $remote_user [$time_local] "$request" ' access_log /dev/stdout main_timed; keepalive_timeout 65; server { server_tokens off; client_max_body_size 10M; root /var/www/html; location / { # wbb rewrite
# pass the php scripts to fastcgi daemon location ~* \.(jpg|jpeg|gif|png|css|js|ico|xml)$ { # deny access to . files, for security reasons # limit fpm status configs to localhost |