tiredofit / docker-freepbx

Dockerized FreePBX 15 w/Asterisk 17, Seperate MySQL Database support, and Data Persistence and UCP
MIT License
516 stars 236 forks source link

port mapping in the docker-compose file erroneous #129

Open fabianus76 opened 4 years ago

fabianus76 commented 4 years ago

hi tiredofit, in the docker-compose.yml file the ports 5060 and 5160 have to be marked for udp:

services: freepbx-app: container_name: freepbx-app image: tiredofit/freepbx ports:

If you aren't using a reverse proxy

 #- 80:80
 #### If you want SSL Support and not using a reverse proxy
 #- 443:443
  - 5060:5060/udp
  - 5160:5160/udp
  - 18000-18100:18000-18100/udp
bleissem commented 4 years ago

Hi @tiredofit ,

I have another question. What about ports 5061 5161 8001 8003 8008 8009 In https://github.com/tiredofit/docker-freepbx/blob/15/Dockerfile there are the ports being exposed. In https://github.com/tiredofit/docker-freepbx/blob/15/examples/docker-compose.yml they are currently not. Why is this ? Are the ports missing in docker-compose.yml ? Regards Alex B.

bleissem commented 4 years ago

opened up a pull request #137

tiredofit commented 4 years ago

The example that I provided is pretty much a bare minimum. You wouldn't necessarily want to map all of those ports unless you really needed to. Typically you would be mapping 5061 and 5161 if using TLS. The 8000-8010 ports I believe are for UCP panel. If you aren't experiencing issues or not doing anything specific, you may not want to expose them in docker-compose. I've exposed them for certain instances should you need to talk to the container from another container and not be on the same network, again, a use case I haven't included in the example file.