{"id":13748190,"url":"https://github.com/roquie/docker-swoole-webapp","last_synced_at":"2025-10-15T22:52:27.094Z","repository":{"id":72822711,"uuid":"155554097","full_name":"roquie/docker-swoole-webapp","owner":"roquie","description":"Simple Docker-image to build your applications based on Async PHP extensions.","archived":false,"fork":false,"pushed_at":"2019-06-28T14:31:08.000Z","size":57,"stargazers_count":26,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T20:34:26.003Z","etag":null,"topics":["alpine","docker","fast","microservice","php","php73","swoole"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/roquie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-10-31T12:30:54.000Z","updated_at":"2022-11-14T12:34:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"410e523f-b968-4c4e-8a6d-66e2fa8f9125","html_url":"https://github.com/roquie/docker-swoole-webapp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/roquie/docker-swoole-webapp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roquie%2Fdocker-swoole-webapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roquie%2Fdocker-swoole-webapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roquie%2Fdocker-swoole-webapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roquie%2Fdocker-swoole-webapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roquie","download_url":"https://codeload.github.com/roquie/docker-swoole-webapp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roquie%2Fdocker-swoole-webapp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267023278,"owners_count":24022924,"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","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["alpine","docker","fast","microservice","php","php73","swoole"],"created_at":"2024-08-03T07:00:36.576Z","updated_at":"2025-10-15T22:52:22.063Z","avatar_url":"https://github.com/roquie.png","language":"Dockerfile","funding_links":[],"categories":["Docker"],"sub_categories":[],"readme":"Docker Swoole WebApp Image\n--------------------------\n\n[![CircleCI](https://circleci.com/gh/roquie/docker-swoole-webapp.svg?style=svg)](https://circleci.com/gh/roquie/docker-swoole-webapp)\n\nSimple docker image to build your applications based on Swoole PHP extension.\nTuned for maximum performance.\n\nVersions:\n* PHP 7.4, 7.3, 7.2 (out of date), 7.1 (out of date)\n* Latest Alpine\n* Swoole builds from source with versions: [templates/alpine/php74.yaml](templates/alpine/php74.yaml).\n\nNotice:\n* Opcache enabled for cli. It use very aggressive caching and settings. Only for production.\n* For now (28/06/2019) `composer` does not support PHP 7.4 :( \n\n**Every week at 00:00 on Sunday (UTC) Docker images automatically rebuilds.**\n\n## Async\n\nImage provides following async extensions:\n* `async`, https://github.com/concurrent-php/ext-async.git \n* `eio`, https://github.com/rosmanov/pecl-eio.git \n* `uv`, https://github.com/bwoebi/php-uv.git \n* `swoole_async`, https://github.com/swoole/async-ext.git \n\n## Run\n\n```bash\ndocker run --rm -it --init -p 8080:8080 roquie/docker-swoole-webapp\n```\n\n## How to usage\n\nExample 1:\n\n```Dockerfile\nFROM roquie/composer-parallel\nCOPY . /app\n\nRUN composer install --no-ansi --no-dev --no-interaction --no-progress --no-scripts --optimize-autoloader --ignore-platform-reqs\n\nFROM roquie/docker-swoole-webapp\nCOPY --from=0 /app /app\n```\n\nExample 2:\n\n```Dockerfile\nFROM roquie/docker-swoole-webapp\nCOPY . /app\n```\n\nExample 3:\n\n```Dockerfile\nFROM roquie/docker-swoole-webapp\n\n# Override default env values\nENV PHP_OPCACHE_ENABLE=0\n\nCOPY . /app\n```\n\nProject files must be contains `index.php` to start app.\n\n## Extensions\n\n```bash\n[PHP Modules]\nasync\nbrotli\nCore\nctype\ncurl\ndate\ndom\neio\nfileinfo\nfilter\nftp\ngmp\nhash\niconv\nintl\njson\nlibxml\nmbstring\nmysqlnd\nopenssl\npcre\nPDO\npdo_mysql\npdo_pgsql\npdo_sqlite\nPhar\nposix\nreadline\nReflection\nsession\nSimpleXML\nsockets\nsodium\nSPL\nsqlite3\nstandard\nswoole\nswoole_async\ntokenizer\nxml\nxmlreader\nxmlwriter\nyaml\nZend OPcache\nzlib\n\n[Zend Modules]\nZend OPcache\n\n```\n\n## Env variables\n\n```bash\nENTRY_SCRIPT /app/index.php\n\nPHP_MEMORY_LIMIT=-1\nPHP_MAX_EXECUTION_TIME=120 # seconds\nPHP_MAX_INPUT_TIME=60 # seconds\nPHP_ERROR_REPORTING=\"E_ALL \u0026 ~E_DEPRECATED \u0026 ~E_STRICT\"\nPHP_DISPLAY_ERRORS=Off\nPHP_POST_MAX_SIZE=512M\nPHP_UPLOAD_MAX_FILESIZE=512M\nPHP_MAX_FILE_UPLOADS=20\nPHP_DEFAULT_MIMETYPE=application/json\nPHP_SESSION_STRICT_MODE=1\nPHP_SESSION_COOKIE_SECURE=1\nPHP_EXPOSE_PHP=Off\nPHP_DATE_TIMEZONE=UTC\nPHP_SHORT_OPEN_TAG=Off\nPHP_ASYNC_THREADS=auto\n\nPHP_OPCACHE_ENABLE=1\nPHP_OPCACHE_ENABLE_CLI=1\nPHP_OPCACHE_MEMORY_CONSUMPTION=512\nPHP_OPCACHE_INTERNED_STRINGS_BUFFER=16\nPHP_OPCACHE_MAX_ACCELERATED_FILES_AUTO=true\nPHP_OPCACHE_MAX_ACCELERATED_FILES=50000 # if PHP_OPCACHE_MAX_ACCELERATED_FILES_AUTO is `true`, files count automatically.\nPHP_OPCACHE_REVALIDATE_FREQ=0\nPHP_OPCACHE_ENABLE_FILE_OVERRIDE=1\nPHP_OPCACHE_FILE_CACHE_ONLY=1\n```\n\n## Tags\n\n* latest (PHP 7.3)\n* 7.4-latest\n* 7.3-latest\n* 7.2-latest (only `swoole` available, out of date)\n* 7.1-latest (only `swoole` available, out of date)\n\n## License\n\nMIT License\n\nCopyright (c) 2019 roquie0@gmail.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froquie%2Fdocker-swoole-webapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froquie%2Fdocker-swoole-webapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froquie%2Fdocker-swoole-webapp/lists"}