mirror of
https://github.com/10h30/ols-docker-env.git
synced 2026-05-12 15:21:24 +09:00
modified: .env
modified: README.md modified: docker-compose.yml
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
TimeZone=America/New_York
|
TimeZone=America/New_York
|
||||||
OLS_VERSION=1.8.1
|
OLS_VERSION=1.8.2
|
||||||
PHP_VERSION=lsphp83
|
PHP_VERSION=lsphp83
|
||||||
MYSQL_DATABASE=wordpress
|
MYSQL_DATABASE=wordpress
|
||||||
MYSQL_ROOT_PASSWORD=password
|
MYSQL_ROOT_PASSWORD=password
|
||||||
|
|||||||
@@ -31,9 +31,9 @@ The docker image installs the following packages on your system:
|
|||||||
|
|
||||||
|Component|Version|
|
|Component|Version|
|
||||||
| :-------------: | :-------------: |
|
| :-------------: | :-------------: |
|
||||||
|Linux|Ubuntu 22.04|
|
|Linux|Ubuntu 24.04|
|
||||||
|OpenLiteSpeed|[Latest version](https://hub.docker.com/r/litespeedtech/openlitespeed)|
|
|OpenLiteSpeed|[Latest version](https://hub.docker.com/r/litespeedtech/openlitespeed)|
|
||||||
|MariaDB|[Stable version: 10.5](https://hub.docker.com/_/mariadb)|
|
|MariaDB|[Stable version: 11.4](https://hub.docker.com/_/mariadb)|
|
||||||
|PHP|[Latest version](http://rpms.litespeedtech.com/debian/)|
|
|PHP|[Latest version](http://rpms.litespeedtech.com/debian/)|
|
||||||
|LiteSpeed Cache|[Latest from WordPress.org](https://wordpress.org/plugins/litespeed-cache/)|
|
|LiteSpeed Cache|[Latest from WordPress.org](https://wordpress.org/plugins/litespeed-cache/)|
|
||||||
|ACME|[Latest from ACME official](https://github.com/acmesh-official/get.acme.sh)|
|
|ACME|[Latest from ACME official](https://github.com/acmesh-official/get.acme.sh)|
|
||||||
@@ -176,12 +176,12 @@ bash bin/webadmin.sh [-M, --mod-secure] disable
|
|||||||
After installation, you can use phpMyAdmin to access the database by visiting `http://127.0.0.1:8080` or `https://127.0.0.1:8443`. The default username is `root`, and the password is the same as the one you supplied in the `.env` file.
|
After installation, you can use phpMyAdmin to access the database by visiting `http://127.0.0.1:8080` or `https://127.0.0.1:8443`. The default username is `root`, and the password is the same as the one you supplied in the `.env` file.
|
||||||
|
|
||||||
## Customization
|
## Customization
|
||||||
If you want to customize the image by adding some packages, e.g. `lsphp80-pspell`, just extend it with a Dockerfile.
|
If you want to customize the image by adding some packages, e.g. `lsphp83-pspell`, just extend it with a Dockerfile.
|
||||||
1. We can create a `custom` folder and a `custom/Dockerfile` file under the main project.
|
1. We can create a `custom` folder and a `custom/Dockerfile` file under the main project.
|
||||||
2. Add the following example code to `Dockerfile` under the custom folder
|
2. Add the following example code to `Dockerfile` under the custom folder
|
||||||
```
|
```
|
||||||
FROM litespeedtech/openlitespeed:latest
|
FROM litespeedtech/openlitespeed:latest
|
||||||
RUN apt-get update && apt-get install lsphp80-pspell -y
|
RUN apt-get update && apt-get install lsphp83-pspell -y
|
||||||
```
|
```
|
||||||
3. Add `build: ./custom` line under the "image: litespeedtech" of docker-composefile. So it will looks like this
|
3. Add `build: ./custom` line under the "image: litespeedtech" of docker-composefile. So it will looks like this
|
||||||
```
|
```
|
||||||
|
|||||||
+1
-2
@@ -1,7 +1,6 @@
|
|||||||
version: '3'
|
|
||||||
services:
|
services:
|
||||||
mysql:
|
mysql:
|
||||||
image: mariadb:10.5.9
|
image: mariadb:11.4
|
||||||
logging:
|
logging:
|
||||||
driver: none
|
driver: none
|
||||||
command: ["--max-allowed-packet=512M"]
|
command: ["--max-allowed-packet=512M"]
|
||||||
|
|||||||
Reference in New Issue
Block a user