Skip to content

Commit

Permalink
Merge pull request #124 from ndigitals/develop
Browse files Browse the repository at this point in the history
fix(OLS): Updates for the OpenLiteSpeed 1.7.18.1 Patch (#123)
  • Loading branch information
timnolte authored Oct 21, 2023
2 parents 512077d + ca7516f commit f1cac1f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,25 +32,25 @@ The system will regulary build the OpenLiteSpeed Latest stable version, along wi

Download the openlitespeed image, we can use latest for latest version

```
```shell
docker pull ghcr.io/ndigitals/openlitespeed:latest
```

or specify the OpenLiteSpeed version with lsphp version

```
```shell
docker pull ghcr.io/ndigitals/openlitespeed:1.7-lsphp82
```

### Start a Container

```
```shell
docker run --name openlitespeed -p 7080:7080 -p 80:80 -p 443:443 -it ghcr.io/ndigitals/openlitespeed:latest
```

You can also run with Detached mode, like so:

```
```shell
docker run -d --name openlitespeed -p 7080:7080 -p 80:80 -p 443:443 -it ghcr.io/ndigitals/openlitespeed:latest
```

Expand All @@ -60,21 +60,21 @@ Tip, you can get rid of `-p 7080:7080` from the command if you don’t need the

The server should start running successfully, and you should be able to log into the container. Add some files you want to display with the following command:

```
```shell
docker exec -it openlitespeed bash
```

Your default `WORKDIR` should be `/var/www/vhosts/`, since the default document root path is `/var/www/vhosts/localhost/html`. Simply add the following command to `index.php`, then we can verify it from the browser with a public server IP address on both HTTP and HTTPS.

```
```shell
echo '<?php phpinfo();' > localhost/html/index.php
```

### Stop a Container

Feel free to substitute the "openlitespeed" to the "Container_ID" if you did not define any name for the container.

```
```shell
docker stop openlitespeed
```

Expand Down
2 changes: 1 addition & 1 deletion template/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ FROM litespeedtech/openlitespeed:${OLS_VERSION}-lsphp${PHP_MAJOR_VERSION}0 AS ol

FROM debian:11-slim

LABEL org.opencontainers.image.url=https://github.com/ndigitals/ols-dockerfiles
LABEL org.opencontainers.image.url=https://github.com/ndigitals/ols-dockerfiles/pkgs/container/openlitespeed
LABEL org.opencontainers.image.documentation=https://github.com/ndigitals/ols-dockerfiles/wiki
LABEL org.opencontainers.image.source=https://github.com/ndigitals/ols-dockerfiles
LABEL org.opencontainers.image.vendor="Nolte Digital Solutions"
Expand Down

0 comments on commit f1cac1f

Please sign in to comment.