Giter Site home page Giter Site logo

freediameter-docker's Introduction

Presentation

The docker image build the code of freeDiameter directly from the official mercurial repo. By default all the freediameter extensions are enabled, and the program is directly installed to the root folder.

The configuration file of diameter is directly embedded into the Docker image and located at: /etc/freeDiameter/freeDiameter.conf

Environment variables

The following environment variables are used when you start a container. The /root/script.sh automatically replace them in the freeDiameter.conf config file.

  • TZ: Container timezone (default: Europe/Paris)
  • diameterID: hostname of the container (default: peer1)
  • domainName: network domain (default: localdomain)
  • params: all the params to give to the freeDiameterd program

Quick usage

Single server

docker run -it -p 3868:3868 razaborg/freediameter

Two peers

For example if you want to set-up a 2 peers diameter server connection. You can use the provided YML file with docker-compose:

docker-compose -f compose-2peers.yml up -d

This will set up a docker network (called 'localdomain') with 2 peers (respectively 'peer1' and 'peer2' (I won the price of originality for this, yeah.)). The 2 containers will automatically generate their own specific configuration files, thanks to the script.sh starting script and their provided environment variables.

Something else

Up to you bro! Use docker-compose and the config file of freeDiameter to do your magic ;-) The script.sh file launched at container start-up will automatically configure the freeDiameter daemon to fit your needs.

freediameter-docker's People

Contributors

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