V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
huangyanxong
V2EX  ›  Node.js

基于 Docker 的 Node.js 开发环境

  •  
  •   huangyanxong · 2016-12-12 17:21:21 +08:00 · 1858 次点击
    这是一个创建于 2691 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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  
       2016-12-12 18:28:16 +08:00
    Node.js 7.x

    PHP 哭晕在厕所(版本号)
    huangyanxong
        2
    huangyanxong  
    OP
       2016-12-12 23:57:20 +08:00
    @nfroot Node.js 现在 8.x 的版本都有测试版本
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   990 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 20:22 · PVG 04:22 · LAX 13:22 · JFK 16:22
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.