All Projects → goozp → Zphal Dockerfiles

goozp / Zphal Dockerfiles

dockerfiles that support zPhal's working environment

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Zphal Dockerfiles

Docker Compose
Container with Docker + Docker Compose - good for CI
Stars: ✭ 127 (-8.63%)
Mutual labels:  docker-compose
Almost Famous
🌟 Almost-Famous(成名之路) ——卡牌游戏开源项目,架构使用SpringBoot+Netty+Maven+SpringCloud来搭建多进程分布式框架,包括Cloud、Unique、Login、Game、Match、Battle 等服务。
Stars: ✭ 131 (-5.76%)
Mutual labels:  docker-compose
Beyond Jupyter
🐍💻📊 All material from the PyCon.DE 2018 Talk "Beyond Jupyter Notebooks - Building your own data science platform with Python & Docker" (incl. Slides, Video, Udemy MOOC & other References)
Stars: ✭ 135 (-2.88%)
Mutual labels:  docker-compose
Serverless Plugin Simulate
This is a proof of concept to see if we can replicate Amazon API Gateway using docker images to run lambda
Stars: ✭ 128 (-7.91%)
Mutual labels:  docker-compose
Wekan Mongodb
Docker: Wekan <=> MongoDB
Stars: ✭ 130 (-6.47%)
Mutual labels:  docker-compose
Inertia
✈️ Effortless, self-hosted continuous deployment for small teams and projects
Stars: ✭ 133 (-4.32%)
Mutual labels:  docker-compose
Laravel Docker K8s
Running Laravel project using Docker and Deploying using Kubernetes
Stars: ✭ 127 (-8.63%)
Mutual labels:  docker-compose
Zammad Docker Compose
Zammad Docker images for docker-compose
Stars: ✭ 136 (-2.16%)
Mutual labels:  docker-compose
Docker Mailserver
Docker Mailserver based on the famous ISPMail guide
Stars: ✭ 129 (-7.19%)
Mutual labels:  docker-compose
Dotnetlabs
.NET Labs -- Show Me the Tips and Tricks and Code
Stars: ✭ 135 (-2.88%)
Mutual labels:  docker-compose
Dcind
Docker image with Docker Compose. Useful as a base image for integration tests in Concourse CI.
Stars: ✭ 128 (-7.91%)
Mutual labels:  docker-compose
Stf Poc
single host deployment of STF for PoC purposes or when scaling to 14 devices is sufficient for you
Stars: ✭ 129 (-7.19%)
Mutual labels:  docker-compose
St2 Docker
StackStorm docker-compose deployment
Stars: ✭ 133 (-4.32%)
Mutual labels:  docker-compose
Podman Compose
a script to run docker-compose.yml using podman
Stars: ✭ 2,414 (+1636.69%)
Mutual labels:  docker-compose
Docker Elk
The Elastic stack (ELK) powered by Docker and Compose.
Stars: ✭ 12,327 (+8768.35%)
Mutual labels:  docker-compose
Docker Compose Wordpress
An example Docker Compose setup for WordPress plugin or theme development.
Stars: ✭ 127 (-8.63%)
Mutual labels:  docker-compose
Growi Docker Compose
⚓️ growi-docker-compose - The fastest way to boot All-in-One GROWI
Stars: ✭ 131 (-5.76%)
Mutual labels:  docker-compose
Djangoweb
基于Django的运维平台
Stars: ✭ 137 (-1.44%)
Mutual labels:  docker-compose
Docker Compose Ha Consul Vault Ui
A docker-compose example of HA Consul + Vault + Vault UI
Stars: ✭ 136 (-2.16%)
Mutual labels:  docker-compose
Go Clean Architecture
👨‍💻 REST API example, built by following Uncle Bob’s clean architecture principles
Stars: ✭ 133 (-4.32%)
Mutual labels:  docker-compose

zPhal-dockerfiles

dockerfiles that support zPhal's working environment

简介

用 Docker 容器服务的方式搭建 zPhal 环境,易于维护、升级。使用前需了解 Docker 的基本概念,常用基本命令。 可以一条条命令执行docker命令来构建镜像,容器。这里推荐使用 docker-compose 来管理,执行项目,下面是使用流程。

相关软件版本:

  • PHP 7.2
  • MySQL 5.7
  • Nginx 1.12
  • Redis 3.2

用到的 PHP 拓展(2018.2.9更新):

  • redis 3.1.4
  • Phalcon 3.3.1

使用

1.安装 Docker,Docker-compose

sudo pip install -U docker-compose

2.下载 zPhal-dockerfiles

直接 clone:

git clone [email protected]:ZpGuo/zPhal-dockerfiles.git

或者下载 zip 压缩包也可以。

3.下载需要的拓展包

先下载好要使用的拓展包,如果编译出错要多次构建容器就可以省掉下载时间。

cd zPhal-dockerfiles/files

wget https://pecl.php.net/get/redis-3.1.6.tgz -O php/pkg/redis.tgz  
wget https://codeload.github.com/phalcon/cphalcon/tar.gz/v3.3.1 -O php/pkg/cphalcon.tar.gz 

4.docker-compose 构建项目

进入 docker-compose.yml 所在目录: 执行命令:

docker-compose up

如果没问题,下次启动时可以以守护模式启用,所有容器将后台运行:

docker-compose up -d

使用 docker-compose 基本上就这么简单,Docker 就跑起来了,用 stop,start 关闭开启容器服务。
更多的是在于编写 dockerfile 和 docker-compose.yml 文件。

可以这样关闭容器并删除服务:

docker-compose down

5. 使用 Composer

zPhal 项目依赖 Composer 进行构建。

我们在创建 PHP-fpm 容器时就已经将 Composer 安装在容器中,可以运行该容器进行 Composer 操作。

用 docker-compose 进行操作:

docker-compose run --rm -w /data/www/zPhal php-fpm composer update

-w /data/www/zPhal为在php-fpm的工作区域,zPhal项目也是挂载在里面,所有我们可以直接在容器里运行composer。

或者进入宿主机(容器外部)app 目录下用 docker 命令:

cd zPhal-dockerfiles/app

docker run -it --rm -v `pwd`:/data/www/ -w /data/www/zPhal files_php-fpm composer update
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].