GithubHelp home page GithubHelp logo

pomelo-docker's Introduction

Pomelo-docker

Pomelo 定制的 docker 容器。

使用

已经上传到 Docker hub,可以直接使用 (地址)

docker run -i -t hustlion/pomelo /bin/bash

示例

https://github.com/HustLion/pomelo-chat

使用 docker swarm 对官方的 Chat 示例进行部署:

pomelo 本身是支持负载均衡的,docker swarm 的主要作用也是负载均衡。所以部署 Hello world 可以直接在一个 image 里面做,将端口映射写在 Dockerfile 中,但是这样每修改一次端口需要重新构建一次 image。使用 swarm 则在 docker-compose.yml 中写好端口映射,可以动态更改,并且如果使用 pomelo 的负载均衡,就只开一个 container,如果使用 docker 的,就要给不同的部分比如 gate、connector、chat 分别开一类 service,相应的业务代码也做一些更改,但是这显得修改量太大。暂时示例一个 container 的。

要开放的端口有 gate 和 connector 的。chat不必开。

编译

docker build -t hustlion/pomelo .

pomelo-docker's People

Contributors

hustlion 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.