Dockerized version of FreePBX with Asterisk by Brainbean Apps
docker run \
--name freepbx \
--restart unless-stopped \
--net=host \
-v /pbx/asterisk/etc:/etc/asterisk:rw \
-v /pbx/asterisk/log:/var/log/asterisk:rw \
-v /pbx/asterisk/lib:/var/lib/asterisk:rw \
-v /pbx/asterisk/spool:/var/spool/asterisk:rw \
-v /pbx/freepbx/freepbx.conf:/etc/freepbx.conf:rw \
-v /pbx/freepbx/amportal.conf:/etc/amportal.conf:rw \
-v /pbx/freepbx/odbc.ini:/etc/odbc.ini:rw \
-v /pbx/db:/var/lib/mysql:rw \
brainbeanapps/asterisk:latest
or
docker volume create pbx-asterisk-etc
docker volume create pbx-asterisk-log
docker volume create pbx-asterisk-lib
docker volume create pbx-asterisk-spool
docker volume create pbx-db
--name freepbx \
--restart unless-stopped \
--net=host \
-v pbx-asterisk-etc:/etc/asterisk:rw \
-v pbx-asterisk-log:/var/log/asterisk:rw \
-v pbx-asterisk-lib:/var/lib/asterisk:rw \
-v pbx-asterisk-spool:/var/spool/asterisk:rw \
-v /pbx/freepbx/freepbx.conf:/etc/freepbx.conf:rw \
-v /pbx/freepbx/amportal.conf:/etc/amportal.conf:rw \
-v /pbx/freepbx/odbc.ini:/etc/odbc.ini:rw \
-v pbx-db:/var/lib/mysql:rw \
brainbeanapps/asterisk:latest
Check default ports used here.