These are Docker Compose files for building Freeswitch 1.10 from source.
I took modules.conf
from the minimal configuration. If you need to add any modules, you can do so there—just remember the requirements and to load them afterward by updating modules.conf.xml
.
Keep in mind that this setup uses the host network, so ensure your system is properly firewalled before putting it into production.
If your VPS is behind NAT, update the following files:
-CMD ["/usr/local/freeswitch/bin/freeswitch", "-nonat"]
+CMD ["/usr/local/freeswitch/bin/freeswitch"]
+ <X-PRE-PROCESS cmd="set" data="bind_server_ip=YOUR-EXTERNAL-IP"/>
+ <X-PRE-PROCESS cmd="set" data="external_rtp_ip=YOUR-EXTERNAL-IP"/>
+ <X-PRE-PROCESS cmd="set" data="external_sip_ip=YOUR-EXTERNAL-IP"/>
For more details, refer to the official documentation: Amazon EC2 - FreeSWITCH
apt-get update && apt-get upgrade -y && apt-get install docker-compose -y
cd /usr/src
git clone https://github.com/os11k/freeswitch-docker-compose.git
git clone https://github.com/signalwire/freeswitch.git
cp -a ./freeswitch/conf/minimal ./freeswitch-docker-compose/freeswitch/conf
cd ./freeswitch-docker-compose/
docker-compose up -d --build
Based on a guide by cyrenity.