V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
huangyanxong
V2EX  ›  Node.js

基于 Docker 的 Node.js 开发环境

  •  
  •   huangyanxong · Dec 12, 2016 · 2440 views
    This topic created in 3433 days ago, the information mentioned may be changed or developed.

    Docker-node.js

    nodejsanddocker

    Software Stack

    • MongoDB
    • Redis
    • MySQL
    • Node.js 7.x
    • Nginx

    How to use it?

    Requirements

    Setup

    
    git clone https://github.com/huangyanxiong01/docker-node.js.git
    
    cd docker-node.js
    
    yarn install
    
    docker-compose up -d
    
    

    Now,you can open http://127.0.0.1:3000/ in browser

    Configure

    You can find the custom $software configuration file in ./docker/$software/etc/

    Data

    You can find the $software data file in ./docker/$software/Data/

    TODO

    • Build the nginx image with the lua module
    • Optimize the configuration file
    • Test on Windows
    Why do I need a Lua module?

    The nginx configuration file uses environment variables

    Change Log

    Changelog.md

    欢迎提交 PR , ISSUE

    Node.js 开发环境

    nfroot
        1
    nfroot  
       Dec 12, 2016
    Node.js 7.x

    PHP 哭晕在厕所(版本号)
    huangyanxong
        2
    huangyanxong  
    OP
       Dec 12, 2016
    @nfroot Node.js 现在 8.x 的版本都有测试版本
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   6012 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 02:17 · PVG 10:17 · LAX 19:17 · JFK 22:17
    ♥ Do have faith in what you're doing.