|
2 | 2 |
|
3 | 3 | Re sail from alpine !
|
4 | 4 |
|
5 |
| -*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. |
| 5 | +*Webox* is the abbreviation for `web-box`, which means building a website box. This is a custom `LNMP` integrated container that comes pre installed with some commonly used modules such as MariaDB, Nginx, PHP, and Redis. |
6 | 6 |
|
7 |
| -- mariadb 10.6.x |
| 7 | +## Instructions for use |
8 | 8 |
|
9 |
| -- nginx 1.22.x |
| 9 | +Due to different components pre installed on different branches, please select the branch and review the detailed instructions |
10 | 10 |
|
11 |
| -- php 8.1.x |
| 11 | +## Supported Tags |
12 | 12 |
|
13 |
| - - redis |
| 13 | +- [latest](https://github.com/rehiy/webox-docker/tree/master/latest): nginx + php8.1 + mariadb + redis |
14 | 14 |
|
15 |
| -- redis 7.0.x |
| 15 | +- [edge](https://github.com/rehiy/webox-docker/tree/master/edge): nginx + php8.2 + mariadb + redis |
16 | 16 |
|
17 |
| -# Supported Tags |
| 17 | +- [edge-php7](https://github.com/rehiy/webox-docker/tree/master/edge): nginx + php7.4 + mariadb + redis |
18 | 18 |
|
19 |
| -- [latest](https://github.com/rehiy/webox-docker/tree/master): nginx + php8.1 + mariadb + redis |
| 19 | +- [nginx](https://github.com/rehiy/webox-docker/tree/master/nginx) |
20 | 20 |
|
21 |
| -- [edge](https://github.com/rehiy/webox-docker/tree/edge): nginx + php8.2 + mariadb + redis |
| 21 | +- [nginx-geoip](https://github.com/rehiy/webox-docker/tree/master/nginx-geoip) |
22 | 22 |
|
23 |
| -- [edge-php7](https://github.com/rehiy/webox-docker/tree/edge): nginx + php7.4 + mariadb + redis |
| 23 | +- [nginx-php8.2](https://github.com/rehiy/webox-docker/tree/master/nginx-php8.2) |
24 | 24 |
|
25 |
| -- [nginx](https://github.com/rehiy/webox-docker/tree/nginx) |
| 25 | +- [nginx-php, nginx-php8, nginx-php8.1](https://github.com/rehiy/webox-docker/tree/master/nginx-php8.1) |
26 | 26 |
|
27 |
| -- [nginx-geoip](https://github.com/rehiy/webox-docker/tree/nginx-geoip) |
| 27 | +- [nginx-php8.0](https://github.com/rehiy/webox-docker/tree/master/nginx-php8.0) |
28 | 28 |
|
29 |
| -- [nginx-php8.2](https://github.com/rehiy/webox-docker/tree/nginx-php8.2) |
| 29 | +- [nginx-php7, nginx-php7.4](https://github.com/rehiy/webox-docker/tree/master/nginx-php7.4) |
30 | 30 |
|
31 |
| -- [nginx-php, nginx-php8, nginx-php8.1](https://github.com/rehiy/webox-docker/tree/nginx-php8.1) |
| 31 | +- [nginx-php7.3](https://github.com/rehiy/webox-docker/tree/master/nginx-php7.3) |
32 | 32 |
|
33 |
| -- [nginx-php8.0](https://github.com/rehiy/webox-docker/tree/nginx-php8.0) |
| 33 | +- [nginx-php5, nginx-php5.6](https://github.com/rehiy/webox-docker/tree/master/nginx-php5.6) |
34 | 34 |
|
35 |
| -- [nginx-php7, nginx-php7.4](https://github.com/rehiy/webox-docker/tree/nginx-php7.4) |
36 |
| - |
37 |
| -- [nginx-php7.3](https://github.com/rehiy/webox-docker/tree/nginx-php7.3) |
38 |
| - |
39 |
| -- [nginx-php5, nginx-php5.6](https://github.com/rehiy/webox-docker/tree/nginx-php5.6) |
40 |
| - |
41 |
| -# Simple Usage |
42 |
| - |
43 |
| -## The nginx is listening on `docker-ip:80` |
44 |
| - |
45 |
| -```shell |
46 |
| -docker run --name MYBOX -d -p 80:80 -p 443:443 \ |
47 |
| - -v /MY/htdoc:/var/www/default \ |
48 |
| - -v /MY/mysql:/var/lib/mysql \ |
49 |
| - rehiy/webox |
50 |
| -``` |
51 |
| - |
52 |
| -## Put your files to host's webroot |
53 |
| - |
54 |
| -If the domain is `www.example.org`, the webroot will be `/MY/htdoc/org.example.www/`. |
55 |
| - |
56 |
| -# Manual Control Services |
57 |
| - |
58 |
| -```shell |
59 |
| -docker run --name MYBOX -d -p 80:80 -p 443:443 \ |
60 |
| - -v /MY/htdoc:/var/www/default \ |
61 |
| - -v /MY/config:/var/config \ |
62 |
| - -e 'WBX_APPS=nginx php81' \ |
63 |
| - -e 'TZ=Asia/Shanghai' \ |
64 |
| - rehiy/webox |
65 |
| -``` |
66 |
| - |
67 |
| -## ENV Variables |
68 |
| - |
69 |
| -- `WBX_APPS`, Set up automatically started services |
70 |
| - |
71 |
| -- `TZ`, Set the timezone |
72 |
| - |
73 |
| -## Service management command |
74 |
| - |
75 |
| -```shell |
76 |
| -docker exec -it MYBOX wkit [start|stop|restart|reload] |
77 |
| -``` |
78 |
| - |
79 |
| -## Add some PHP extension modules |
80 |
| - |
81 |
| -```shell |
82 |
| -docker exec -it MYBOX apk add \ |
83 |
| - php81-pcntl php81-posix php81-saop \ |
84 |
| - php81-maxminddb php81-pecl-imagick |
85 |
| -``` |
86 |
| - |
87 |
| -## Configure the components you need |
88 |
| - |
89 |
| -You can place additional config files in `/MY/config/*`, these files will be copied to `{MYBOX}/etc` and take effect on next restart. |
90 |
| - |
91 |
| -- Configure mariadb |
92 |
| - |
93 |
| - - /MY/config/mysql/conf.d/\* |
94 |
| - |
95 |
| -- Configure virtual host |
96 |
| - |
97 |
| - - /MY/config/nginx/host.d/\* |
98 |
| - |
99 |
| -- Configure php81 |
100 |
| - |
101 |
| - - /MY/config/php81/conf.d/\* |
102 |
| - |
103 |
| -- Configure redis |
104 |
| - |
105 |
| - - /MY/config/redis/redis.conf |
106 |
| - |
107 |
| -- Scripts in the following locations will be run when `MYBOX` started: |
108 |
| - |
109 |
| - - /MY/config/rc.local |
110 |
| - - /MY/config/local.d/\* |
111 |
| - - /MY/config/local.d/s3-prewkit |
112 |
| - - /MY/config/local.d/s5-wkit |
113 |
| - - /MY/config/local.d/s6-postwkit |
114 |
| - |
115 |
| -# Important Notice |
116 |
| - |
117 |
| -## Don't forget to change mysql password |
118 |
| - |
119 |
| -```shell |
120 |
| -docker exec -it MYBOX mysqladmin -u root password abc345 |
121 |
| -``` |
122 |
| - |
123 |
| -You may also need to execute the following SQL statements. |
124 |
| - |
125 |
| -```sql |
126 |
| -DROP USER 'mysql'@'localhost'; |
127 |
| -``` |
128 |
| - |
129 |
| -# More Issues |
| 35 | +## More Issues |
130 | 36 |
|
131 | 37 | See <https://github.com/rehiy/webox-docker/issues> for more issues.
|
0 commit comments