Compare commits

..

7 Commits

Author SHA1 Message Date
Cold-Egg aeafac6022 modified: README.md
2 years ago
Cold-Egg b4fadc0834 Update phpmyadmin
2 years ago
Cold-Egg 82731d9abb Merge branch 'master' of https://github.com/litespeedtech/ols-docker-env
2 years ago
Cold-Egg 5940aaf163 modified: .env
2 years ago
E.L b367f8229e
Merge pull request #47 from worino/master
3 years ago
Ulrich Dyhr Ottosen 1e980ee5ba updated PHP to version 8.1.x
3 years ago
Ulrich Dyhr Ottosen f52a09ade8 Added network section to ensure all containers are on same network, this helps laravel applications to migrate
3 years ago

@ -1,6 +1,6 @@
TimeZone=America/New_York
OLS_VERSION=1.7.15
PHP_VERSION=lsphp80
OLS_VERSION=1.7.16
PHP_VERSION=lsphp81
MYSQL_DATABASE=wordpress
MYSQL_ROOT_PASSWORD=password
MYSQL_USER=wordpress

@ -4,7 +4,7 @@
[<img src="https://img.shields.io/badge/slack-LiteSpeed-blue.svg?logo=slack">](litespeedtech.com/slack)
[<img src="https://img.shields.io/twitter/follow/litespeedtech.svg?label=Follow&style=social">](https://twitter.com/litespeedtech)
Install a lightweight WordPress container with OpenLiteSpeed Edge or Stable version based on Ubuntu 18.04 Linux.
Install a lightweight WordPress container with OpenLiteSpeed Edge or Stable version based on Ubuntu 22.04 Linux.
### Prerequisites
1. [Install Docker](https://www.docker.com/)
@ -31,7 +31,7 @@ The docker image installs the following packages on your system:
|Component|Version|
| :-------------: | :-------------: |
|Linux|Ubuntu 20.04|
|Linux|Ubuntu 22.04|
|OpenLiteSpeed|[Latest version](https://openlitespeed.org/downloads/)|
|MariaDB|[Stable version: 10.5](https://hub.docker.com/_/mariadb)|
|PHP|[Latest version](http://rpms.litespeedtech.com/debian/)|
@ -139,6 +139,19 @@ Use the root domain in this command, and it will check for a certificate and aut
```
./bin/acme.sh [-D, --domain] example.com
```
Other parameters:
* [`-r`, `--renew`]: Renew a specific domain with -D or --domain parameter if posibile. To force renew, use -f parameter.
* [`-R`, `--renew-all`]: Renew all domains if possible. To force renew, use -f parameter.
* [`-f`, `-F`, `--force`]: Force renew for a specific domain or all domains.
* [`-v`, `--revoke`]: Revoke a domain.
* [`-V`, `--remove`]: Remove a domain.
### Update Web Server
To upgrade the web server to latest stable version, run the following:
```

@ -140,6 +140,7 @@ disable_modsec(){
install_git(){
if [ ! -f /usr/bin/git ]; then
echo 'Install git'
apt update >/dev/null 2>&1
apt-get install git -y >/dev/null 2>&1
fi
}

@ -13,6 +13,8 @@ services:
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
restart: always
networks:
- default
litespeed:
image: litespeedtech/openlitespeed:${OLS_VERSION}-${PHP_VERSION}
logging:
@ -34,13 +36,18 @@ services:
restart: always
environment:
TZ: ${TimeZone}
networks:
- default
phpmyadmin:
image: bitnami/phpmyadmin:5.0.2-debian-10-r72
logging:
driver: none
image: bitnami/phpmyadmin:5.2.0-debian-11-r43
ports:
- 8080:80
- 8443:443
- 8080:8080
- 8443:8443
environment:
DATABASE_HOST: mysql
restart: always
networks:
- default
networks:
default:
driver: bridge
Loading…
Cancel
Save