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
docker run --name MYBOX -d -p 80:80 -p 443:443 \
-v /MY/htdoc:/var/www/default \
rehiy/webox:nginx-php8.1
If the domain is www.example.org
, the webroot will be /MY/htdoc/org.example.www/
.
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
TZ
, Set the timezone
docker exec -it MYBOX wkit [start|stop|restart|reload]
docker exec -it MYBOX apk add \
php81-pcntl php81-posix php81-saop \
php81-maxminddb php81-pecl-imagick
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
See https://github.com/rehiy/webox-docker/issues for more issues.