{"id":13580322,"url":"https://github.com/litespeedtech/ols-dockerfiles","last_synced_at":"2025-04-07T13:05:48.318Z","repository":{"id":56254668,"uuid":"64963417","full_name":"litespeedtech/ols-dockerfiles","owner":"litespeedtech","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-06T14:48:29.000Z","size":36,"stargazers_count":53,"open_issues_count":0,"forks_count":29,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-31T12:04:33.573Z","etag":null,"topics":["docker","docker-image","openlitespeed"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/litespeedtech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-04T20:00:41.000Z","updated_at":"2025-03-08T01:56:31.000Z","dependencies_parsed_at":"2024-01-01T23:17:53.818Z","dependency_job_id":"9b4701cd-8297-432f-888c-7b0e0dd9b838","html_url":"https://github.com/litespeedtech/ols-dockerfiles","commit_stats":{"total_commits":59,"total_committers":7,"mean_commits":8.428571428571429,"dds":0.3728813559322034,"last_synced_commit":"cf889200b3248862c8799a6a661e2803f797a07a"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litespeedtech%2Fols-dockerfiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litespeedtech%2Fols-dockerfiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litespeedtech%2Fols-dockerfiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litespeedtech%2Fols-dockerfiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/litespeedtech","download_url":"https://codeload.github.com/litespeedtech/ols-dockerfiles/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247657276,"owners_count":20974344,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-image","openlitespeed"],"created_at":"2024-08-01T15:01:49.818Z","updated_at":"2025-04-07T13:05:48.299Z","avatar_url":"https://github.com/litespeedtech.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# OpenLiteSpeed Docker Container\n[![Build Status](https://github.com/litespeedtech/ols-dockerfiles/workflows/docker-build/badge.svg)](https://github.com/litespeedtech/ols-dockerfiles/actions/new)\n[![docker pulls](https://img.shields.io/docker/pulls/litespeedtech/openlitespeed?style=flat\u0026color=blue)](https://hub.docker.com/r/litespeedtech/openlitespeed)\n[\u003cimg src=\"https://img.shields.io/badge/slack-LiteSpeed-blue.svg?logo=slack\"\u003e](litespeedtech.com/slack) \n[\u003cimg src=\"https://img.shields.io/twitter/follow/litespeedtech.svg?label=Follow\u0026style=social\"\u003e](https://twitter.com/litespeedtech)\n\nInstall a lightweight OpenLiteSpeed container using either the Edge or Stable version in Ubuntu 24.04 Linux.\n\n### Prerequisites\n*  [Install Docker](https://www.docker.com/)\n\n## Build Components\nThe system will regulary build both OpenLiteSpeed Edge and Latest stable versions, along with the last two PHP versions.\n\n|Component|Version|\n| :-------------: | :-------------: |\n|Linux|Ubuntu 24.04|\n|OpenLiteSpeed|[Latest stable version](https://openlitespeed.org/release-log/version-1-8-x)|\n|PHP|[Latest stable version](http://rpms.litespeedtech.com/debian/)|\n\n## Usage\n### Download an image\nDownload the openlitespeed image, we can use latest for latest version\n```\ndocker pull litespeedtech/openlitespeed:latest\n```\nor specify the OpenLiteSpeed version with lsphp version\n```\ndocker pull litespeedtech/openlitespeed:1.8.3-lsphp83\n```\n### Start a Container\n```\ndocker run --name openlitespeed -p 7080:7080 -p 80:80 -p 443:443 -it litespeedtech/openlitespeed:latest\n```\nYou can also run with Detached mode, like so:\n```\ndocker run -d --name openlitespeed -p 7080:7080 -p 80:80 -p 443:443 -it litespeedtech/openlitespeed:latest\n```\nTip, you can get rid of `-p 7080:7080` from the command if you don’t need the web admin access.  \n\n### Add a sample page\nThe 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:\n```\ndocker exec -it openlitespeed bash\n```\nYour 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. \n```\necho '\u003c?php phpinfo();' \u003e localhost/html/index.php\n```\n\n### Stop a Container\nFeel free to substitute the \"openlitespeed\" to the \"Container_ID\" if you did not define any name for the container.\n```\ndocker stop openlitespeed\n```\n\n## Customization\nSometimes you may want to install more packages from the default image, or some other web server or PHP version which is not officially provided. You can build an image based on an existing image. Here’s how:\n  1. Download the dockerfile project \n  2. `cd` into the project directory\n  3. Edit the Dockerfile here if necessary\n  4. Build, feeling free to substitute server and PHP versions to fit your needs \n\nFor example,\n```\ngit clone https://github.com/litespeedtech/ols-dockerfiles.git\ncd ols-dockerfiles/template\nbash build.sh -O 1.7.16 -P lsphp81\n```\n\n## Support \u0026 Feedback\nIf you still have a question after using OpenLiteSpeed Docker, you have a few options.\n* Join [the GoLiteSpeed Slack community](https://litespeedtech.com/slack) for real-time discussion\n* Post to [the OpenLiteSpeed Forums](https://forum.openlitespeed.org/) for community support\n* Reporting any issue on [Github ols-dockerfiles](https://github.com/litespeedtech/ols-dockerfiles/issues) project\n\n**Pull requests are always welcome** ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitespeedtech%2Fols-dockerfiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flitespeedtech%2Fols-dockerfiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitespeedtech%2Fols-dockerfiles/lists"}