joglomedia/easydock-linux
Composer 安装命令:
composer create-project joglomedia/easydock-linux
包简介
A fork of EasyDock for Linux. Docker LEMP stack easy integration.
README 文档
README
A fork of EasyDock to work in Linux. Docker LEMP stack easy integration. Dockerize your PHP apps ;)
Features
EasyDock Linux comes with:
- Nginx (Latest stable)
- PHP (7.4 and 8.0)
- MariaDB (Drop-in replacement for MySQL)
- PostgreSQL (Alternative SQL database)
- Redis (In-memory key-value data store)
phpmyadminAdminer (Lightweight MySQL admin)- MailHog (An email testing tool)
- Node.js, NPM & Yarn (Front-end development tool)
- Git (Version control system)
- Composer (PHP application package manager)
Requirements
Docker and Docker Compose installed on Linux Distro (Tested on Debian, Ubuntu, and LinuxMint).
Installation
- Integrate EasyDock Linux in your PHP application via Composer.
- You should add your Composer's vendor bin directory to your environment path.
cd /path/to/your-php-application composer global require joglomedia/easydock-linux easydock init && easydock import
- Configure your application path into
.env.easydockfile.
Getting Started
Once you have installed EasyDock Linux successfully, if required, you could configure your .env.easydock file and then run this build command:
easydock build
During the build process, EasyDock Linux will download required Docker images. After the build completes, you could kick-up your EasyDock Linux application by executing:
easydock up
Configure Nginx and PHP-FPM
- The default Nginx server configuration
app.confwill expose your project/publicdirectory. - If your project uses different directory structure, you should adjust the configuration in
app.conffile accordingly. - Your application by default accessible through localhost on port 8008 (
http://localhost:8008) - Currently, EasyDock Linux only supports stable PHP version: 7.4 & 8.0 from
joglomedia/easydock-phpimage.
The Nginx public port and PHP version could be configured inside .env.easydock file.
# APP PORT APP_PORT=8008 # PHP VERSION PHP_VERSION=7.4
Everytime you change PHP version into .env.easydock file you have to run:
easydock reset && easydock build
PS: Resetting your EasyDock instance will delete the database data. You should backup your database before!
Configure database connection
The default database connection for MySQL and PostgreSQL.
Database: easydockdb
Username: easydock
Password: secret
Root password: rootsecret
Host name: mysql ( or pgsql for PostgreSQL )
For security reason, you should change the default database username and password configured in .env.easydock file.
# MYSQL / POSTGRESQL DB NAME DB_NAME=easydockdb # MYSQL / POSTGRESQL USER DB_USER=easydock # MYSQL / POSTGRESQL USER PASSWORD DB_PASS=secret # MYSQL ROOT PASSWORD DB_ROOT_PASS=rootsecret # MYSQL PORT MYSQL_PORT=3306 # POSTGRESQL PORT PGSQL_PORT=5432
Configure SMTP connection
By default, SMTP connection through MailHog doesn't require any username or password.
host: mailhog port: 1025
EasyDock Commands
EasyDock comes with handy command line interface to manage your Docker containers. Execute the following commands inside your application directory.
- Initialize EasyDock project.
easydock init
- Build EasyDock images
easydock build
- Start EasyDock application instance
easydock up
- Stop EasyDock application instance
easydock stop
- Restart EasyDock application instance
easydock restart
- Take down (stop and delete) EasyDock instance
easydock down
- Access
sshinto EasyDock application instance
easydock shell
- Get EasyDock application details
easydock info
- Hard reset running EasyDock instance
easydock reset
Security Vulnerabilities and Bugs
If you discover any security vulnerability or any bug within EasyDock Linux, please open an issue.
Awesome People
EasyDock Linux is an open-source project licensed under the MIT license with its ongoing development made possible entirely by the support of all these smart and generous people, from code contributors to financial contributors. 💜
Thank you for considering contributing to this project!
Project Maintainers
Edi Septriyanto @joglomedia |
Code Contributors
Made with contributors-img.
Financial Contributors
You can support us using any of the methods below:
Buy Me a Bottle of Milk or a Cup of Coffee !!
Licence
EasyDock Linux is open-source project licensed under the MIT license.
Enjoy EasyDock for Linux ;)
joglomedia/easydock-linux 适用场景与选型建议
joglomedia/easydock-linux 是一款 基于 Shell 开发的 Composer 扩展包,目前已累计 17 次下载、GitHub Stars 达 2, 最近一次更新时间为 2021 年 03 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「container」 「php」 「debian」 「ubuntu」 「nginx」 「docker」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 joglomedia/easydock-linux 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 joglomedia/easydock-linux 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 joglomedia/easydock-linux 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A simple debian packager for PHP applications
A simple debian packager wrapper for PHP applications
A fast and intuitive dependency injection container.
Dependency injection container for the Monolith framework.
The PSR-11 container bridges
统计信息
- 总下载量: 17
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-03-06

