Skip to content

os11k/freeswitch-docker-compose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Freeswitch Docker Compose

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.

Configuration for NAT (e.g., Amazon EC2)

If your VPS is behind NAT, update the following files:

Update freeswitch/Dockerfile

-CMD ["/usr/local/freeswitch/bin/freeswitch", "-nonat"]
+CMD ["/usr/local/freeswitch/bin/freeswitch"]

Update freeswitch/conf/vars.xml

+  <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

Usage

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

Credits

Based on a guide by cyrenity.

About

docker-compose files for building Freeswitch from sources

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published