Forum

Docker installation + MySQL connection working

Posted in CategoryInstallation & Update
  • Billy Bouman    ( User ) 3 months ago

    Hi all,

    I had a lot of difficulty installing Akaunting locally using docker. First permission errors (about the bootstrap/cache and storage/logs, context here) and after that one I couldn't connect to my databse. What I had to do were the following steps.

     

    git clone https://github.com/akaunting/akaunting.git

    cd akaunting

    docker-compose down -v && docker build -t akaunting . && docker-compose up -d

    docker-compose exec web composer install

    sudo chmod -R 777 storage/

    sudo chmod -R 777 bootstrap/cache/

    cp .env.example .env

    sudo chmod 777 .env

    docker-compose exec web php artisan key:generate

     

    Go to: http://127.0.0.1:8080/install/requirements

     

    host = docker inspect akaunting_web_1 | grep Gateway

    db = akaunting_db

    db_username = root

    db_password = akaunting_root_password

     

    After doing this you are able to continue the installation. Doing all these things feels kind of hacky. Is this the right way to go or is there certainly something wrong with my set up.

Please login or register to leave a response.