Giter Club home page Giter Club logo

docker-nodejs-init's Introduction

##配置要求

  • Docker (>1.9.1)
  • Docker-compose (>1.6.0)

##容器

  • redis (redis:alpine)
  • mongodb (mvertes/alpine-mongo)
  • myapp (express + npm)

##使用方法 下载

git clone https://github.com/jeeinn/docker-nodejs-init.git
cd docker-nodejs-init

构建并开启

docker-compose up -d

访问

http://127.0.0.1:3000

关闭

docker-compose down

更多常用命令:

  • 使用docker-compose暂停
docker-compose stop
  • 使用docker-compose开启
docker-compose start
  • 将所有容器停止
docker kill $(docker ps -q)
  • 将所有容器停止并删除
docker kill $(docker ps -q) ; docker rm $(docker ps -a -q)
  • 将所有容器停止并删除,然后清除Docker中所有已下载的镜像(慎用)
docker kill $(docker ps -q) ; docker rm $(docker ps -a -q) ; docker rmi $(docker images -q -a) 

点此查看更多常用命令

##文件结构

  • deploy(存储持久化数据、配置文件)
  • myapp (存储开发所使用的网站程序数据)

更新

  • 2017-01-13 初始化

docker-nodejs-init's People

Contributors

dependabot[bot] avatar jeeinn avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.