# docker-compose-openresty-hyperf **Repository Path**: se1per_php_code/docker-compose-openresty-hyperf ## Basic Information - **Project Name**: docker-compose-openresty-hyperf - **Description**: No description available - **Primary Language**: Unknown - **License**: BSD-2-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2024-06-01 - **Last Updated**: 2025-05-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # docker-compose-lnmp-php7&8-swoole This repository contains a little `docker-compose` configuration to start a `LEMP (Linux, Nginx, MariaDB, PHP,redis,portainer)` stack. Example PHP-FPM & Nginx setup for Docker, build on [Alpine Linux](http://www.alpinelinux.org/). The image is only +/- 35MB large. * Built on the lightweight and secure Alpine Linux distribution * Very small Docker image size (+/-35MB) * Uses latest PHP version for better performance, lower CPU usage & memory footprint * Optimized for 100 concurrent requests (optimized for container with limit 0.25 vcpu, 512 mb) * Optimized for building micro RESTful API * The servers Nginx, PHP-FPM and supervisord run under a non-privileged user (nobody) to make it more secure * The logs of all the services are redirected to the output of the Docker container (visible with `docker logs -f `) * Follows the KISS principle (Keep It Simple, Stupid) to make it easy to understand and adjust the image to your needs #### Details The following versions are used. 1. php 8.0.13 && 7.4 && 8.2.15 (option) 2. Swoole 4.8.11 3. nginx 1.22.0 4. mariadb:10.8.3 && mysql:5.7 (option) 5. redis 6.0.7 6. portainer latest #### Structure directory ~~~ ├── app # project ├── db # DbLog,data,config ├── nginx # nginxLog,config ├── php # phpLog,config,dockerFile ├── portainer # portainer ├── redis # redisLog,data,config .evn # docker-compose config docker-compose.yml # docker-compose ~~~ ## Configuration You can also set the following environment variables, for example in the included `.env` file: ## Running ~~~ git clone git@github.com:Se1per/docker-compose-php-lnmp-swoole.git ./www ~~~ php7.4 ~~~ cp docker-compose.yml.example74 docker-compose.yml ~~~ php8.0 ~~~ cp docker-compose.yml.example8 docker-compose.yml ~~~ php8.2.15 ~~~ cp docker-compose.yml.example82 docker-compose.yml ~~~ start-up ~~~ cd ./www docker-compose up -d ~~~ ## port ~~~ php:9000 nginx:80 db:33060 redis:63790 portainer:9030 ~~~ ## PHP extensions included: ~~~ [PHP Modules] bcmath bz2 calendar Core ctype curl date dba dom exif fileinfo filter gd gettext gmp hash iconv igbinary json libxml mbstring mcrypt memcache memcached mongodb mysqli mysqlnd odbc openssl pcntl pcre PDO pdo_dblib pdo_mysql PDO_ODBC pdo_pgsql pdo_sqlite Phar posix readline redis Reflection session shmop soap sockets sodium SPL sqlite3 ssh2 standard swoole sysvmsg sysvsem sysvshm tokenizer xlswriter xml xmlreader xmlwriter xsl Zend OPcache zip zlib [Zend Modules] Zend OPcache ~~~