I recently installed Debian 12 and wanted to set up FreePBX through Docker to manage my ISP's VoIP outside of my proprietary router. I asked ChatGPT for a Docker Compose file, which it provided, but I think I made a huge mistake. When I ran `docker compose up -d` using this file, my CPU and RAM usage skyrocketed to 99%, and I had to force shut down my machine multiple times due to corruption messages and recovery shells that popped up. Could the specific port range for RTP be the reason behind this crash?
3 Answers
Yeah, that RTP port range could definitely cause problems. I had a similar experience when I tested a setup with too many ports. It just bogged down my machine. Looks like the official way your setup is done elsewhere avoids this issue, so maybe check their documentation for alternatives.
It sounds like the issue is mainly due to the large range of RTP ports you're trying to forward. When you specify such a range, Docker has to create iptables rules for each port, which can easily overwhelm your system resources. If you run it using host networking mode instead of the default bridge, it might help reduce the load.
The first red flag here is asking an AI for technical setups. It's essential to start with documented setups from the actual developers. They often provide example Compose files on their site, which can save a lot of trouble. Also, you should consider that AI-generated advice might miss some key requirements, like needing an external MySQL/MariaDB container for FreePBX to function properly.

Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures