Code Monkey home page Code Monkey logo

cgrates-docker's Introduction

CGRATES for Docker

On Docker Hub

slegs/cgrates-docker:latest is stable-3.9.0
slegs/cgrates-docker:test is dev-3.9.13

CGRateS is a telco billing, rating and realtime charging system built in the Go language. It is very fast and flexible. See below for more

CGRateS docker image based on MongoDB backend for datadb and stordb. Based on Debian stretch using latest CGRateS prebuilt deb stable file http://pkg.cgrates.org/deb/v0.10/cgrates_current_amd64.deb

Tags in Docker Hub

  • Latest points to latest stable ( slegs/cgrates-docker:latest )
  • Test points to latest dev which could be broken ( slegs/cgrates-docker:test )

Global Config Environment Variables

  • CGRATES_CFG with default RAL. Options currently SESSION and RAL (DISPATCHER WIP). Copies in config relative to purpose.
  • CGRATES_NAME with default localhost. Allows you to pass the instance name which is used in Node ID and in networking (so must be addressable).
  • MONGO_HOST with default 127.0.0.1 though no Mongo DB server in build so wont work unless this value is set correctly. In Kubernetes pass the full cluster replicaset string as MONGO_HOST env variable (if using a Mongo DB replicaset).
  • MONGO_PORT with default 27017.
  • MONGO_DATADB with default 10
  • MONGO_STORDB with default cgrates
  • CGRATES_LOG_LEVEL with default 1
  • CONTAINER_TZ with default Europe/Dublin
  • CGRATES_CONN_STRATEGY with default firstconn. Possible values are internalconn,firstconn,roundrobinconn,randomconn,ratioconn and allconn which allow you to configure how you want a CGRateS cluster to be used.
  • CGRATES_CONNS with default {"address": "127.0.0.1:2012", "transport": "*json"},. For Kubernetes, change to full string for each pod in a RAL statefulset as in example below
- name: CGRATES_CONNS					
  value: '{"address": "cgr-ral-test-0.cgr-ral-test:2012", "transport": "*json"},{"address": "cgr-ral-test-1.cgr-ral-test:2012", "transport": "*json"},{"address": "cgr-ral-test-2.cgr-ral-test:2012", "transport": "*json"},'

SESSION Environment Variables

In SESSION type, if pairing with a Kamailio in Kubernetes then deploy both Kamailio and CGRateS SESSION as a pair of containers in your deploy yaml. Each pair of containers will have 1-1 connection on port supplied below on the Pod using the default localhost address 127.0.0.1. If using a remote Kamailio just specify the remote host address (IP/FQDN)

  • CGRATES_KAMAILIO_ENABLED with default false. Used to update config to enable a CGRateS/Kamailio evapi real time rating and control connection.
  • CGRATES_KAMAILIO_EVAPI_HOST with default 127.0.0.1
  • CGRATES_KAMAILIO_EVAPI_PORT with default 8448
  • CGRATES_DISPATCHER_ENABLED with default false
  • CGRATES_SESSION_ENABLED with default false

cgrates-docker's People

Contributors

slegs avatar workair-paulw avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

apgpavel

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.