Giter Site home page Giter Site logo

docker_lnmp_swoole's Introduction

实现 docker php + nginx 多版本快速切换

通过shell脚本快速添加切换 (还没做)

一键启动

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

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

查看日志

docker logs --tail 50 --follow --timestamps dockerlnmpswoole_swoole_1

执行容器内命令

sudo docker exec -it $DOCKER_ID /bin/bash -c 'COMMAND'

docker_lnmp_swoole's People

Contributors

luo1324574369 avatar

Watchers

James Cloos avatar

Forkers

heartshare

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.