freepbx icon indicating copy to clipboard operation
freepbx copied to clipboard

Run without mac vlan

Open backupandforkacc opened this issue 3 years ago • 9 comments

Nice work!

Can you please help me get it run without mac vlan?

I tried: docker pull technoexpress/freepbx then


docker run --name freepbx \
-v freepbx-etc:/etc \
-v freepbx-www:/var/www \
-v freepbx-log:/var/log \
-v freepbx-lib:/var/lib \
-v freepbx-home:/home \
-v /etc/resolv.conf:/etc/resolv.conf:ro \
--cap-add=NET_ADMIN --ip=192.168.103.44 \
--restart=always -itd technoexpress/freepbx

It shows

/Downloads/technoexpress_freepbx$ sudo docker ps
CONTAINER ID   IMAGE                     COMMAND                  CREATED         STATUS         PORTS                                                                                                                                                                                NAMES
fc1b762c38a8   technoexpress/freepbx     "/usr/bin/systemctl …"   8 seconds ago   Up 7 seconds   25/tcp, 80/tcp, 443/tcp, 465/tcp, 953/tcp, 2122/tcp, 53/udp, 5060-5063/tcp, 8001/tcp, 8003/tcp, 8088-8089/tcp, 5060-5063/udp, 9990/tcp, 9990/udp, 10000-10100/tcp, 10000-10100/udp   freepbx

But I cannot access the panel via https://192.168.103.44:9990.

backupandforkacc avatar Dec 30 '21 20:12 backupandforkacc

Hostname needs to be your IP address whatever hostname you have, you have "free.pbx.host"

TheTechsTech avatar Dec 30 '21 21:12 TheTechsTech

Sorry, text was probably misleading. I cannot access the panel, not via https://free.pbx.host:9990/ and not via https://192.168.103.44:9990. (192.168.103.44 is the ip of the server where I started the docke container)

backupandforkacc avatar Dec 30 '21 21:12 backupandforkacc

I mean you have "free.pbx.host" in your docker run command. You not going to connect to anything with that. Unless you own the domain.

TheTechsTech avatar Dec 30 '21 21:12 TheTechsTech

I mean you have "free.pbx.host" in your docker run command. You not going to connect to anything with that. Unless you own the domain.

Thank you, thats right, but getting rid of that part does not change anything.

backupandforkacc avatar Dec 30 '21 21:12 backupandforkacc

You put your IP address?

TheTechsTech avatar Dec 30 '21 21:12 TheTechsTech

What errors come up? Look at the log file

TheTechsTech avatar Dec 30 '21 21:12 TheTechsTech

Missing:

--cap-add=NET_ADMIN --ip=xxx.xxx.xxx.xxx

From docker run command

TheTechsTech avatar Dec 30 '21 22:12 TheTechsTech

I got the following logs (I added what you wrote in comments and edited my first post) I put the IP adress of the server where docker ist running.

docker logs: https://pastebin.com/vZLeAHBm

backupandforkacc avatar Jan 03 '22 12:01 backupandforkacc

That still shows "free.pbx.host" in logs, that should not be shown anywhere.

You need purge everything, all data, or a new mount drive.

TheTechsTech avatar Jan 03 '22 15:01 TheTechsTech