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
- Latest points to latest stable ( slegs/cgrates-docker:latest )
- Test points to latest dev which could be broken ( slegs/cgrates-docker:test )
CGRATES_CFG
with defaultRAL
. Options currentlySESSION
andRAL
(DISPATCHER
WIP). Copies in config relative to purpose.CGRATES_NAME
with defaultlocalhost
. Allows you to pass the instance name which is used in Node ID and in networking (so must be addressable).MONGO_HOST
with default127.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 asMONGO_HOST
env variable (if using a Mongo DB replicaset).MONGO_PORT
with default27017
.MONGO_DATADB
with default10
MONGO_STORDB
with defaultcgrates
CGRATES_LOG_LEVEL
with default1
CONTAINER_TZ
with defaultEurope/Dublin
CGRATES_CONN_STRATEGY
with defaultfirstconn
. Possible values areinternalconn
,firstconn
,roundrobinconn
,randomconn
,ratioconn
andallconn
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"},'
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 defaultfalse
. Used to update config to enable a CGRateS/Kamailio evapi real time rating and control connection.CGRATES_KAMAILIO_EVAPI_HOST
with default127.0.0.1
CGRATES_KAMAILIO_EVAPI_PORT
with default8448
CGRATES_DISPATCHER_ENABLED
with defaultfalse
CGRATES_SESSION_ENABLED
with defaultfalse