Run bigger range of RTP ports
  • Use the flag : - -net host

docker run  --net  host -i -d --name=restcomm-myInstance -v /var/log/restcomm/:/var/log/restcomm/ -e RCBCONF_STATIC_ADDRESS="YOUR_ETHERNET_IP" -e ENVCONFURL="https://raw.githubusercontent.com/RestComm/Restcomm-Docker/master/scripts/restcomm_env_locally.sh" restcomm/restcomm:latest
Get environment configuration file from remote repository/source
  • Use the flag : ENVCONFURL to load a remote file exposed by web server.

docker run -i -d  --net host --name=restcomm -e ENVCONFURL="https://raw.githubusercontent.com/RestComm/Restcomm-Docker/master/scripts/restcomm_env_basic.sh"  restcomm/restcomm:latest
  • Use the flag : - -env-file to load a locaL RestComm environment configuration file.

docker run -i -d  --net host --name=restcomm ---env-file="local_path/restcomm_env_basic.sh"  restcomm/restcomm:latest
Automatically restart the container in case of a failure or host restart
  • Use the flag --restart-always

docker run  -i -d- --net host --name=restcomm --restart=always  -e RCBCONF_STATIC_ADDRESS="YOUR_ETHERNET_IP" -e ENVCONFURL="https://raw.githubusercontent.com/RestComm/Restcomm-Docker/master/scripts/restcomm_env_locally.sh" restcomm/restcomm:latest
Use specific Docker logs Driver
  • You have to use the - -log-driver=json-file. (To disable any Docker logs for the container use - -log-driver=none)

  • Enable Docker logs rotation - -log-opt max-size=20m - -log-opt max-file=3. (Rotate using 3 files 20m each file)

docker run -i -d --net host --log-driver=json-file --log-opt max-size=20m --name=restcomm restcomm/restcomm:latest