From b95f8c6299b0a71cbf6d3bb2add249901251b37b Mon Sep 17 00:00:00 2001 From: Chyi Date: Mon, 4 Mar 2024 10:57:33 +0800 Subject: [PATCH] Update docker-compose.yml In the /bin/webadmin.sh file, CONT_NAME='litespeed' is used to check if the Litespeed docker container is running. https://github.com/litespeedtech/ols-docker-env/blob/d7b39ddeb46e454d413ce9e3fc80678384b0c8a2/bin/webadmin.sh#L2 Because the docker-compose file does not explicitly specify the container name for Litespeed, newcomers following the steps in the readme.md might encounter an error indicating that Litespeed is not running, which could be confusing. It is recommended to explicitly define a container name in the docker-compose example file that matches the hardcoded container name in the shell script. --- docker-compose.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-compose.yml b/docker-compose.yml index 121492a..9e02aee 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,6 +17,7 @@ services: - default litespeed: image: litespeedtech/openlitespeed:${OLS_VERSION}-${PHP_VERSION} + container_name: litespeed env_file: - .env volumes: