GithubHelp home page GithubHelp logo

linjiangl / dcde Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 2.0 14.32 MB

docker compose development environment

License: MIT License

Dockerfile 1.51% Shell 98.17% PHP 0.31% Go 0.01%
docker-compose dnmp docker-golang docker-php wsl2

dcde's Introduction

本地开发集成环境

目录结构

├── data                        数据存储
│   ├── esdata                  ElasticSearch 数据目录
│   ├── mongo                   MongoDB 数据目录
│   ├── mysql5                  MySQL5 数据目录
│   ├── mysql8                  MySQL8 数据目录
│   ├── postgres                Postgres 数据目录
│   └── redis                   Redis 数据目录
├── docker-compose.sample.yml   Docker 服务配置示例文件
├── env.sample                  环境配置示例文件
├── docs                        文档目录
├── logs                        日志目录
├── services                    服务构建文件和配置文件目录
│   ├── elasticsearch           ElasticSearch 配置文件目录
│   ├── golang                  Golang 配置文件目录
│   ├── mysql5                  MySQL5 配置文件目录
│   ├── mysql8                  MySQL8 配置文件目录
│   ├── nginx                   Nginx 配置文件目录
│   ├── php74                   PHP74 配置文件目录
│   ├── php80                   PHP80 配置文件目录
│   ├── php81                   PHP81 配置文件目录
│   ├── phpmyadmin              phpmyadmin 配置文件目录
│   ├── rabbitmq                rabbitmq 配置文件目录
│   ├── redis                   redis 配置文件目录
│   └── supervisor              supervisor 配置文件目录
├── work                        工作目录
│   ├── golang                  Golang 程序目录
│   └── hyperf                  Hyperf 程序目录
└── www                         PHP 代码目录

安装

$ git clone [email protected]:linjiangl/docker-web-server.git 
$ cd docker-web-server
$ cp .env.sample .env
$ cp docker-compose.sample.yml docker-compose.yml
$ docker-compose build
$ docker-compose up -d

常用命令

$ docker-compose up                         # 创建并且启动所有容器
$ docker-compose up -d                      # 创建并且后台运行方式启动所有容器
$ docker-compose up nginx php80 mysql8      # 创建并且启动nginx、php、mysql的多个容器
$ docker-compose up -d nginx php80 mysql8   # 创建并且已后台运行的方式启动nginx、php、mysql容器

$ docker-compose start nginx                # 启动服务
$ docker-compose stop nginx                 # 停止服务
$ docker-compose restart nginx              # 重启服务
$ docker-compose build nginx                # 构建或者重新构建服务

$ docker-compose rm nginx                   # 删除并且停止php容器
$ docker-compose down                       # 停止并删除容器,网络,图像和挂载卷

鸣谢

dnmp

dcde's People

Contributors

linjiangl avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

next-god

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.