asterisk
Asterisk with freepbx installation using docker
A basic container just for tests
The following steps uses tiredofit/freepbx which already has an embedded MySql server.
Prerequisites
Docker on the host machine
Installation
Download the 'tiredofit/freepbx' docker image running:
$ docker pull tiredofit/freepbx:latestInstead of latest you can use another tag (this tutorial is based on version 15, i.e., to grab the exact same version you can run
$ docker pull tiredofit/freepbx:15).Check if the image is ready
$ docker image lsCreate a container based on
tiredofit/freepbximage (naming it test):$ docker run --name test tiredofit/freepbxAfter the execution of several procedures, including standard freepbx configuration files and the Web Server, zabbix and cron initialization, it is ready for our testing purposes.
Getting the freepbx web interface address:
Open another terminal
Connect to the container (named test):
$ docker exec -it test bashGet the container IP address:
# ip -4 a
Using freepbx application
Open a Web Browser and type on the search bar
http://<IP Address>/adminLet us say, if the given IP is
172.17.0.2, type in the search barhttp://172.17.0.2/adminThe interface of freepbx should be ready for tests.
For customizations on Asterisk, follow freepbx documentation.
Closing the container
On the terminal which is running the container, press Ctrl+C
Starting the container again
$ docker start -ai test
Running $ docker run tiredofit/freepbx again, creates a brand-new container
Last updated
Was this helpful?