computer-playbook/roles/docker-akaunting
2023-12-02 13:47:43 +01:00
..
handlers Removed server_ for better overview 2023-08-22 22:53:44 +02:00
meta implemented cross-domain matomo tracking on nginx level 2023-11-18 20:02:55 +01:00
tasks implemented cross-domain matomo tracking on nginx level 2023-11-18 20:02:55 +01:00
templates Removed server_ for better overview 2023-08-22 22:53:44 +02:00
vars Removed server_ for better overview 2023-08-22 22:53:44 +02:00
README.md Updated mysql command 2023-12-02 13:47:43 +01:00

docker akaunting

new setup

cd {{path_docker_compose_files}}akaunting/
export COMPOSE_HTTP_TIMEOUT=600
export DOCKER_CLIENT_TIMEOUT=600
AKAUNTING_SETUP=true docker-compose -p akaunting up -d

Check Webinterface and then execute:

docker-compose down
docker-compose -p akaunting up -d

administration

get logs

docker-compose exec -it akaunting tail -n 300 storage/logs/laravel.log 

enter akaunting container

docker-compose exec -it akaunting bash

enter database container

docker-compose exec -it akaunting-db /bin/mariadb -u admin --password=$akaunting_db_password akaunting

manuel update

php artisan about
php artisan cache:clear
php artisan view:clear
php artisan migrate:status
php artisan update:all
php artisan update:db

composer

curl https://getcomposer.org/download/2.4.1/composer.phar --output composer.phar
php composer.phar install

full backup routine

# DO SET MANUEL VARIABLES >>
export akaunting_db_password=XXXXXXXXX
export backup_version=XXXXXXXXX
# << DO SET MANUEL VARIABLES

# set automatic variables
export machine_id="$(sha256sum /etc/machine-id)"
export COMPOSE_HTTP_TIMEOUT=600
export DOCKER_CLIENT_TIMEOUT=600

# destroy all containers
cd {{path_docker_compose_files}}akaunting/ && 
docker-compose down &&
docker network prune -f

# delete all volumes
docker volume rm akaunting_akaunting-data akaunting_akaunting-db akaunting_akaunting-modules

# rebuild containers
docker-compose pull &&
docker-compose build &&
docker-compose -p akaunting up -d --force-recreate

# recover all volumes
cd {{path_administrator_scripts}}backup-docker-to-local &&
bash recover-docker-from-local.sh akaunting_akaunting-modules ${machine_id:0:64} "$backup_version" &&
bash recover-docker-from-local.sh akaunting_akaunting-data ${machine_id:0:64} "$backup_version" &&
bash recover-docker-from-local.sh akaunting_akaunting-db ${machine_id:0:64} "$backup_version" akaunting-db "$akaunting_db_password" akaunting

todo

  • implement build when new akaunting version is set

Further information