computer-playbook/roles/docker-akaunting/readme.md

79 lines
2.1 KiB
Markdown
Raw Normal View History

2022-02-01 17:20:12 +01:00
# docker akaunting
2022-08-31 20:22:56 +02:00
2022-02-01 17:20:12 +01:00
## clean up
2022-08-31 20:22:56 +02:00
2022-02-01 17:20:12 +01:00
### delete all containers
```bash
export COMPOSE_HTTP_TIMEOUT=600
export DOCKER_CLIENT_TIMEOUT=600
cd /home/administrator/docker-compose/akaunting/ && docker-compose down
```
2022-08-31 20:22:56 +02:00
2022-02-01 17:20:12 +01:00
### delete all volumes
```bash
docker volume rm akaunting_akaunting-data akaunting_akaunting-db akaunting_akaunting-modules
```
## setup
```bash
cd /home/administrator/docker-compose/akaunting/
export COMPOSE_HTTP_TIMEOUT=600
export DOCKER_CLIENT_TIMEOUT=600
2022-02-02 11:06:56 +01:00
AKAUNTING_SETUP=true docker-compose -p akaunting up -d
2022-08-31 20:22:56 +02:00
```
Check Webinterface and then execute:
```bash
2022-02-01 17:20:12 +01:00
docker-compose down
2022-02-02 11:06:56 +01:00
docker-compose -p akaunting up -d
2022-02-01 17:20:12 +01:00
```
2022-08-31 20:22:56 +02:00
## enter akaunting container
docker exec -it akaunting bash
curl https://getcomposer.org/download/2.4.1/composer.phar --output composer.phar
## manuel update
```bash
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!
```bash
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
2022-02-01 17:20:12 +01:00
2022-08-31 20:22:56 +02:00
### rebuild containers
2022-02-02 11:06:56 +01:00
```bash
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
```
2022-02-01 17:20:12 +01:00
## Further information
- https://github.com/akaunting/docker
2022-08-31 20:22:56 +02:00
- https://akaunting.com/forum/discussion/installation-update/updating-to-300-failed-cant-manually-update-either
- https://akaunting.com/forum/discussion/installation-update/not-able-to-update-core
- https://akaunting.com/forum/discussion/installation-update/update-to-203-not-able-to-finalize-core-installation