Git Product home page Git Product logo

conalog-docker's Introduction

conalog-docker

Depoly

Suppose ./ = /home/voyager/xd/docker/conalog/
Also suppose you have prepared a mongodb docker container named 'mongo' and a redis docker container named 'redis'.

git clone https://github.com/Orientsoft/conalog.git  
cd conalog  
vim config/config.js  
npm i  
gulp install  
gulp go  
sudo docker run --hostname conalog --name conalog -p 19527:19527 -v /home/voyager/xd/docker/conalog/conalog:/conalog --link mongo --link redis -d xiedidan/conalog

config.js Description

var config = {
  logLevel: 'info', (may be debug, info, warning, error)
  conalogHost: '192.168.0.230', (set to user browser address)
  conalogPort: 19527,
  conalogFrontHost: '192.168.0.230', (set to user browser address)
  conalogFrontPort: 9527,
  mongoUrl: 'mongodb://mongo:27017/conalog', (don't touch this if you use docker)
  redisUrl: 'redis://redis:6379', (don't touch this if you use docker)
  activeCollectorPrefix: 'ac_', (default Redis channel for active collector is 'ac_[YOUR_ACTIVE_COLLECTOR_NAME]')
  passiveCollectorPrefix: 'pc_', (default Redis channel for passive collector is 'ac_[YOUR_PASSIVE_COLLECTOR_NAME]')
  apiGatewayHost: 'apigateway', (API Gateway related, reserved, not used for now)
  apiGatewayPort: 1234,
  apiGatewayToken: '12345',
  apiGatewayUid: '67890',
  apiGatewayType: 'user',
  auth: { (auth list for passive collector, only hosts defined here could be used by passive collector)
    '127.0.0.1': { username: 'voyager', password: 'welcome1' } (if you use docker, 127.0.0.1 points to current container)
  }
}

module.exports = config;

conalog-docker's People

Contributors

xiedidan avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

zhangjuan123

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.