TheTechsTech / freepbx

FreePBX 15 Docker Image CentOS 7.8 build with Asterisk 16 RPM
15 stars 7 forks source link

Run without mac vlan #6

Open backupandforkacc opened 2 years ago

backupandforkacc commented 2 years ago

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.

TheTechsTech commented 2 years ago

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

backupandforkacc commented 2 years ago

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)

TheTechsTech commented 2 years ago

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.

backupandforkacc commented 2 years ago

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.

TheTechsTech commented 2 years ago

You put your IP address?

TheTechsTech commented 2 years ago

What errors come up? Look at the log file

TheTechsTech commented 2 years ago

Missing:

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

From docker run command

backupandforkacc commented 2 years ago

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

TheTechsTech commented 2 years ago

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.