Skip to content

Files

Latest commit

 

History

History

nginx-php8.1

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

What is Webox?

Re sail from alpine !

Webox (abbreviation for web-box) is a customized LNMP server, which includes the following components: MariaDB, Nginx, PHP, Redis. And add some popular plug-ins.

This is a lightweight branch that contains only the following components:

  • nginx 1.24.x

  • php 8.1.x

Simple Usage

The nginx is listening on docker-ip:80

docker run --name MYBOX -d -p 80:80 -p 443:443 \
    -v /MY/htdoc:/var/www/default \
    rehiy/webox:nginx-php8.1

Put your files to host's webroot

If the domain is www.example.org, the webroot will be /MY/htdoc/org.example.www/.

Manual Control Services

docker run --name MYBOX -d -p 80:80 -p 443:443 \
    -v /MY/htdoc:/var/www/default \
    -v /MY/config:/var/config \
    -e 'TZ=Asia/Shanghai' \
    rehiy/webox:nginx-php8.1

ENV Variables

  • TZ, Set the timezone

Service management command

docker exec -it MYBOX wkit [start|stop|restart|reload]

Add some PHP extension modules

docker exec -it MYBOX apk add \
    php81-pcntl php81-posix php81-saop \
    php81-maxminddb php81-pecl-imagick

Configure the components you need

You can place additional config files in /MY/config/*, these files will be copied to {MYBOX}/etc and take effect on next restart.

  • Configure virtual host

    • /MY/config/nginx/host.d/*
  • Configure php81

    • /MY/config/php81/conf.d/*
  • Scripts in the following locations will be run when MYBOX started:

    • /MY/config/rc.local
    • /MY/config/wkit.d/*
    • /MY/config/wkit.d/s3-prewkit
    • /MY/config/wkit.d/s5-wkit
    • /MY/config/wkit.d/s6-postwkit
  • Configure scheduled tasks

    • /MY/config/periodic/15min/xxx
    • /MY/config/periodic/daily/xxx
    • /MY/config/periodic/hourly/xxx
    • /MY/config/periodic/monthly/xxx
    • /MY/config/periodic/weekly/xxx

More Issues

See https://github.com/rehiy/webox-docker/issues for more issues.