Giter VIP home page Giter VIP logo

Comments (11)

tiredofit avatar tiredofit commented on May 17, 2024 1

Thank you @JoyceBabu

from docker-freepbx.

tiredofit avatar tiredofit commented on May 17, 2024 1

I've just done a manual build locally for both tag :latest and 2.7. Enjoy!

from docker-freepbx.

tiredofit avatar tiredofit commented on May 17, 2024

So close! Since you are running DB_EMBEDDED=TRUE add this to your volumes:
-v ./docker/freepbx/db:/var/lib/mysql
Let me know..

from docker-freepbx.

enforcer1064 avatar enforcer1064 commented on May 17, 2024

from docker-freepbx.

tiredofit avatar tiredofit commented on May 17, 2024

I'll try to see whats happening here on a local temporary install. I'm using this with the DB seperated as per the docker-compose file in examples. My only guess right now is that with the "Default" FreePBX install it autogenerates some random passwords for Root and for the Asterisk database, and they are not being saved properly in the configuration files. There have been other reports of this but I've not had much time to dig in deeper. I'll give it one more kick at the can over the weekend, and may end up just ripping the embedded routines out if I can't figure it out

from docker-freepbx.

enforcer1064 avatar enforcer1064 commented on May 17, 2024

from docker-freepbx.

tiredofit avatar tiredofit commented on May 17, 2024

OK Great! Just take a peek in the examples folder of this git repo for the docker-compose.yml file.

https://github.com/tiredofit/docker-freepbx/blob/master/examples/docker-compose.yml

That's pretty much a turnkey solution that's going to get you going immediately with the database seperated and also provide automated db backups for you.

Now, it's based on you using a reverse proxy, but you don't need to use one, as a quick starter just type docker network create nginx-proxy and uncomment the # - 80:80 in the ports definition to see it working and be able to persist upon bringing the container up and down.
it should be as simple as moving that docker-compose.yml file into the directory where you want to store your files and typing docker-compose up -d.
Let me know how you make out.

from docker-freepbx.

sylhero avatar sylhero commented on May 17, 2024

@tiredofit I did what you mentioned but I got the following error

2018-09-25 13:09:05 0 [ERROR] InnoDB: The Auto-extending innodb_system data file './ibdata1' is of a different size 0 pages than specified in the .cnf file: initial 768 pages, max 0 (relevant if non-zero) pages!
2018-09-25 13:09:05 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2018-09-25 13:09:05 0 [Note] InnoDB: Starting shutdown...

it seems that the DB can't start

BTW, I'm running it on my mac

from docker-freepbx.

JoyceBabu avatar JoyceBabu commented on May 17, 2024

I think I found out why the database is being wiped out after every restart.

https://github.com/tiredofit/docker-freepbx/blob/master/install/etc/cont-init.d/09-mariadb#L14

You are using -f for checking the presence of /var/lib/mysql/mysql. Since the above path is a directory, it is always matching. You should either use -e or -d.

from docker-freepbx.

JoyceBabu avatar JoyceBabu commented on May 17, 2024

The docker hub automated build timed out. Can you please check?

from docker-freepbx.

tiredofit avatar tiredofit commented on May 17, 2024

Very odd, still timing out for me. I'll give it a few more hours and then build myself and see if I can sneak one in manually.

from docker-freepbx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.