TheTechsTech / freepbx

FreePBX 15 Docker Image CentOS 7.8 build with Asterisk 16 RPM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Run without mac vlan

backupandforkacc opened this issue · comments

commented

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.

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

commented

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)

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.

commented

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.

You put your IP address?

What errors come up? Look at the log file

Missing:

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

From docker run command

commented

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

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.