From 5da6954ca041469dfd98fdd49c9c6853aff11cfd Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Tue, 1 Feb 2022 17:20:12 +0100 Subject: [PATCH] Optimized akaunting --- roles/docker-akaunting/handlers/main.yml | 4 +++- roles/docker-akaunting/readme.md | 25 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 roles/docker-akaunting/readme.md diff --git a/roles/docker-akaunting/handlers/main.yml b/roles/docker-akaunting/handlers/main.yml index 2c1593c6..1526c44d 100644 --- a/roles/docker-akaunting/handlers/main.yml +++ b/roles/docker-akaunting/handlers/main.yml @@ -1,7 +1,9 @@ --- - name: setup akaunting command: - cmd: docker-compose up -d + cmd: docker-compose -p akaunting up -d --force-recreate chdir: /home/administrator/docker-compose/akaunting/ environment: AKAUNTING_SETUP: true + COMPOSE_HTTP_TIMEOUT: 600 + DOCKER_CLIENT_TIMEOUT: 600 diff --git a/roles/docker-akaunting/readme.md b/roles/docker-akaunting/readme.md new file mode 100644 index 00000000..b2ed3c05 --- /dev/null +++ b/roles/docker-akaunting/readme.md @@ -0,0 +1,25 @@ +# docker akaunting +## clean up +### delete all containers +```bash +export COMPOSE_HTTP_TIMEOUT=600 +export DOCKER_CLIENT_TIMEOUT=600 +cd /home/administrator/docker-compose/akaunting/ && docker-compose down +``` +### 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 +AKAUNTING_SETUP=true docker-compose -p akaunting up -d +docker-compose down +docker-compose up -d +``` + +## Further information +- https://github.com/akaunting/docker