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: bin/database.sh
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
TimeZone=America/New_York
|
||||
OLS_VERSION=1.7.16
|
||||
OLS_VERSION=1.7.18
|
||||
PHP_VERSION=lsphp81
|
||||
MYSQL_DATABASE=wordpress
|
||||
MYSQL_ROOT_PASSWORD=password
|
||||
|
||||
@@ -32,13 +32,14 @@ The docker image installs the following packages on your system:
|
||||
|Component|Version|
|
||||
| :-------------: | :-------------: |
|
||||
|Linux|Ubuntu 22.04|
|
||||
|OpenLiteSpeed|[Latest version](https://openlitespeed.org/downloads/)|
|
||||
|OpenLiteSpeed|[Latest version](https://hub.docker.com/r/litespeedtech/openlitespeed)|
|
||||
|MariaDB|[Stable version: 10.5](https://hub.docker.com/_/mariadb)|
|
||||
|PHP|[Latest version](http://rpms.litespeedtech.com/debian/)|
|
||||
|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)|
|
||||
|WordPress|[Latest from WordPress](https://wordpress.org/download/)|
|
||||
|phpMyAdmin|[Latest from dockerhub](https://hub.docker.com/r/bitnami/phpmyadmin/)|
|
||||
|Redis|[Latest from dockerhub](https://hub.docker.com/_/redis/)|
|
||||
|
||||
## Data Structure
|
||||
Cloned project
|
||||
@@ -128,6 +129,10 @@ To preconfigure the `wp-config` file, run the `database.sh` script for your doma
|
||||
```
|
||||
./bin/appinstall.sh [-A, --app] wordpress [-D, --domain] example.com
|
||||
```
|
||||
|
||||
### Connecting to Redis
|
||||
Go to [WordPress > LSCache Plugin > Cache > Object](https://docs.litespeedtech.com/lscache/lscwp/cache/#object-tab), select **Redis** method and input `redis` to the Host field.
|
||||
|
||||
### Install ACME
|
||||
We need to run the ACME installation command the **first time only**.
|
||||
With email notification:
|
||||
|
||||
+5
-6
@@ -20,13 +20,13 @@ help_message(){
|
||||
echo -e "\033[1mOPTIONS\033[0m"
|
||||
echow '-D, --domain [DOMAIN_NAME]'
|
||||
echo "${EPACE}${EPACE}Example: database.sh -D example.com"
|
||||
echo "${EPACE}${EPACE}Will auto generate Database/username/password for the domain"
|
||||
echo "${EPACE}${EPACE}Will auto-generate Database/username/password for the domain"
|
||||
echow '-D, --domain [DOMAIN_NAME] -U, --user [xxx] -P, --password [xxx] -DB, --database [xxx]'
|
||||
echo "${EPACE}${EPACE}Example: database.sh -D example.com -U USERNAME -P PASSWORD -DB DATABASENAME"
|
||||
echo "${EPACE}${EPACE}Will create Database/username/password by given"
|
||||
echow '-r, --delete [DOMAIN_NAME] -DB, --database [xxx] -U, --user [xxx]'
|
||||
echo "${EPACE}${EPACE}Example: database.sh -r example.com -DB DATABASENAME -U USERNAME"
|
||||
echo "${EPACE}${EPACE}Will delete database (require) and username (optional) by given"
|
||||
echow '-R, --delete -DB, --database [xxx] -U, --user [xxx]'
|
||||
echo "${EPACE}${EPACE}Example: database.sh -r -DB DATABASENAME -U USERNAME"
|
||||
echo "${EPACE}${EPACE}Will delete the database (require) and username (optional) by given"
|
||||
echow '-H, --help'
|
||||
echo "${EPACE}${EPACE}Display help and exit."
|
||||
exit 0
|
||||
@@ -181,8 +181,7 @@ while [ ! -z "${1}" ]; do
|
||||
-db | -DB | -database| --database) shift
|
||||
SQL_DB="${1}"
|
||||
;;
|
||||
-[rR] | -del | --del | --delete) shift
|
||||
DOMAIN="${1}"
|
||||
-[rR] | -del | --del | --delete)
|
||||
METHOD=1
|
||||
;;
|
||||
*)
|
||||
|
||||
Reference in New Issue
Block a user