Comments (10)
The best is to use network mode host because SIP uses a lot of dynamic ports in listen mode and if you configure all those thousand of ports Docker will create a lot of rules (it will even get slower to launch the container). I tried this way before.
Unfortunately the default port on FreePBX is to use port 80 and with network_mode=host you will have conflict. Maybe we could create a way to change this port during startup based on a ENV parameter.
from freepbx.
Thank you for your help
I do not understand, how I can create with Docker a virtual network
I try as well but it does not work as I want sudo docker run --name freepbx --net bridge flaviostutz/freepbx
from freepbx.
In plain “docker run”, you have to use “—net host”.
In readme you can see a sample docker-compose.yml that works with network mode host. Please try it.
from freepbx.
I try your docker compose and it create 3 docker
But I understand the network netplan execution
from freepbx.
from freepbx.
no I don't understand netplan configuration
from freepbx.
netplan works only on the latest versions of Ubuntu.
The netplan configuration on readme is a sample when you a VoIP provider with a different IP in your network, so that you can reach it with static routing. If this is not your case, just ignore it and use your plain network configuration.
In this case, just run
docker-compose.yml
version: '3.3'
services:
freepbx:
image: flaviostutz/freepbx:14.0
network_mode: host
restart: always
volumes:
- freepbx-backup:/backup
- freepbx-recordings:/var/spool/asterisk/monitor
volumes:
freepbx-backup:
freepbx-recordings:
docker-compose up -d
The image is already built in DockerHub, so you don’t need to rebuild it (I removed the build tag after your comments to easy running the container)
from freepbx.
Ok, I did it right, but my port 80 is already busy.
I Aurrais need to change this port is prossible with the Docker compose
from freepbx.
is there meanwhile a solution how the container can be operated as host and port 80 can be changed e.g. to 8080. I have already tried the following variant, but the Freepbx is not accessible under IP:8080.
version: '2'
services:
freepbx-app:
container_name: freepbx
image: flaviostutz/freepbx
network_mode: "host"
volumes:
- /volume1/docker/asterisk/certs:/certs
- /volume1/docker/asterisk/data:/data
- /volume1/docker/asterisk/logs:/var/log
- /volume1/docker/asterisk/html:/var/www/html
environment:
- HTTP_PORT=8080
- ZABBIX_HOSTNAME=freepbx-app
- RTP_START=18000
- RTP_FINISH=18500
restart: always
from freepbx.
from freepbx.
Related Issues (20)
- After restart All the settings cleared HOT 5
- CDR records not shown HOT 9
- Dashboard issues and permanent reloading on applying config HOT 4
- g729 codec issue HOT 3
- Backup cannot be restored HOT 2
- Freepbx New ver. Need AllowOverride All HOT 3
- No CDRs HOT 2
- Can't transmit voice between two sophtfones extensions HOT 1
- Add Freepbx version in backup path to avoid trying to restore backups from different versions (this is unsupported)
- Container no longer starts HOT 1
- Calls drop after 6 seconds HOT 6
- Issue in documentation HOT 2
- Works once then stops container running
- Refactor Database deployment HOT 1
- Can't initialize iptables table 'filter' HOT 4
- Repo asterisk dosen't exist HOT 3
- After restarting the docker container, the web interface (port 80) does not open. HOT 3
- Add asterisk info module
- Change backup time from 60s to 1 day
- 404 error in wget asterisk-15.7.1.tar.gz HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freepbx.