covex-nn/docker-symfony
Composer 安装命令:
composer create-project covex-nn/docker-symfony
包简介
Symfony Flex application skeleton with docker-compose support
README 文档
README
This repository is a skeleton of Symfony Flex application for development and
deployment with docker-compose. It contains a set of GitLab CI/CD Pipeline
procedures for almost zero deployment downtime.
Only trusted base docker images are used at all stages from development to production:
nginx:1.14debian:stretch-slimwith Sury Debian DPA for PHPmysql:5.7phpmyadmin/phpmyadmin
This repository is a symfony/skeleton composer project, bootstrapped by
Environment configurator with the following commands:
composer global require covex-nn/environment
composer global require covex-nn/environment-repository
composer create-project symfony/skeleton .
composer env:apply docker-ci
Usage
Use composer to create a new Symfony Flex application:
composer create-project covex-nn/docker-symfony .
Before launching docker-compose, add two records to C:\WINDOWS\System32\Drivers\etc\hosts
or /etc/hosts file:
docker.local 127.0.0.1
mysql 127.0.0.1
If you use Docker Toolbox, execute docker-machine env, get IP-address from DOCKER_HOST
variable and use that IP instead of 127.0.0.1
To initialize and run a new application with PHP-builtin web-server use following
commands (only MySQL and phpMyAdmin will be started with docker-compose):
docker-compose up -d phing php -S localhost:80 -t public
But if you want to use Nginx as Web server, or if you do not have PHP 7.2
installed on your host, execute the following instead:
cp docker-compose.override.yml.dist docker-compose.override.yml
docker-compose up -d
docker-compose exec php phing
Endpoint container with php-fpm is built with multi-stage Dockerfile.
PHP extensions intl, pdo_mysql, zip, opcache and xdebug (for dev-environment)
are installed by default, but a list of PHP extensions can be easily extended
with simple apt-get.
-
cronis installed for prod-environment; add your crontab jobs todocker/app.crontab. -
cacheandlogdirectories are moved to a non-shared volume for dev-environmen withvolumessection of docker-compose.override.yml
covex-nn/docker-symfony 适用场景与选型建议
covex-nn/docker-symfony 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 47 次下载、GitHub Stars 达 37, 最近一次更新时间为 2018 年 04 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 covex-nn/docker-symfony 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 covex-nn/docker-symfony 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 47
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 37
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-04-12