computer-playbook/roles/docker-akaunting
2022-08-31 20:22:56 +02:00
..
handlers Optimized akaunting 2022-02-01 17:20:12 +01:00
meta Changed typos 2022-01-18 19:26:44 +01:00
tasks Changed typos 2022-01-18 19:26:44 +01:00
templates changed root password 2022-08-31 20:22:56 +02:00
readme.md changed root password 2022-08-31 20:22:56 +02:00

docker akaunting

clean up

delete all containers

export COMPOSE_HTTP_TIMEOUT=600
export DOCKER_CLIENT_TIMEOUT=600
cd /home/administrator/docker-compose/akaunting/ && docker-compose down

delete all volumes

docker volume rm akaunting_akaunting-data akaunting_akaunting-db akaunting_akaunting-modules

setup

cd /home/administrator/docker-compose/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

enter akaunting container

docker exec -it akaunting bash

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

manuel update

php /var/www/html/artisan update:all
php /var/www/html/artisan update:db

composer

curl http://some.url --output

php composer.phar install

recover

recover all volumes

Keep in mind to set the $akaunting_db_password!

cd /usr/local/bin/docker-volume-backup &&
machine_id="$(sha256sum /etc/machine-id)" &&
bash docker-volume-recover.sh akaunting_akaunting-modules ${machine_id:0:64} &&
bash docker-volume-recover.sh akaunting_akaunting-data ${machine_id:0:64} &&
bash docker-volume-recover.sh akaunting_akaunting-db ${machine_id:0:64} akaunting-db "$akaunting_db_password" akaunting

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

rebuild containers

cd /home/administrator/docker-compose/akaunting/
export COMPOSE_HTTP_TIMEOUT=600
export DOCKER_CLIENT_TIMEOUT=600
docker-compose down
docker network prune
docker-compose -p akaunting up -d --force-recreate

Further information