is it a good idea to use Freepbx in a docker?
I have install it from this
[הקלידו או הדביקו קוד כאן](https://hub.docker.com/r/flaviostutz/freepbx)
and the server is up after running this command :
docker run -d -p 80:80 -p 443:443 -p 4445:4445 -p 4569:4569 -p 5060:5060 -p 5160:5160 -p 8001:8001 -p 8003:8003 -p 8008:8008 -p 8009:8009 --name test1 tiredofit/freepbx
but I can’t connect to server with my sip phone
then I saw I can make a yml file with all the setting
so I have create a file called docker-compose.yml
version: '3.3'
services:
freepbx:
image: flaviostutz/freepbx
ports:
- 80:80
- 5060:5060/udp
- 5160:5160/udp
- 3306:3306
- 18000-18100:18000-18100/udp
restart: always
environment:
- ADMIN_PASSWORD=admin123
volumes:
- backup:/backup
- recordings:/var/spool/asterisk/monitor
volumes:
backup:
recordings:
then I saw I need to run
docker-compose up -d
but now it won’t start
docker-compose up
Starting ubuntu_freepbx_1 ... done
Attaching to ubuntu_freepbx_1
freepbx_1 | iptables v1.8.2 (legacy): can't initialize iptables table `filter': Permission denied (you must be root)
freepbx_1 | Perhaps iptables or your kernel needs to be upgraded.
freepbx_1 | For enabling fail2ban you have to run this container with 'privileged: true'
what did I do wrong while running the yml file?
what am I missing in the ports ?
is it a good idea to run FreePBX on docker?
Thanks,
I will
but how do the docker “know” to use this ymal file ?
what if I have created 2 files?
** asking to understand
Thansk,
Yeah, I am sure there are. Things can be used in ways they aren’t designed for. So can it be done? Sure. Is it the best option? No.
You can run Asterisk on your router, doesnt mean it is a good way to do it.
The infamous ward mundy use to play a game with every new device called will it run trixbox then later piaf… Ususally through the genius or insanity of one or more of his community members they made many “smart” devices in to a pbx…
That always brings up