Enable backups for real, add healthcheck, fill out README.md
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
TYPE=akaunting
|
||||
|
||||
ENABLE_BACKUPS=true
|
||||
|
||||
DOMAIN=akaunting.example.com
|
||||
|
||||
COMPOSE_FILE="compose.yml"
|
||||
|
||||
10
README.md
10
README.md
@ -1,14 +1,14 @@
|
||||
# akaunting
|
||||
|
||||
> One line description of the recipe
|
||||
Open-source quickbooks alternative, written in PHP.
|
||||
|
||||
<!-- metadata -->
|
||||
|
||||
* **Category**: Apps
|
||||
* **Status**: 0
|
||||
* **Image**: [`akaunting`](https://hub.docker.com/r/akaunting), 4, upstream
|
||||
* **Healthcheck**: No
|
||||
* **Backups**: No
|
||||
* **Healthcheck**: Yes
|
||||
* **Backups**: Yes
|
||||
* **Email**: No
|
||||
* **Tests**: No
|
||||
* **SSO**: No
|
||||
@ -20,5 +20,9 @@
|
||||
* `abra app new akaunting --secrets`
|
||||
* `abra app config <app-name>`
|
||||
* `abra app deploy <app-name>`
|
||||
* Once the app is up and running, navigate to `https://${DOMAIN}` in your browser
|
||||
* Select your locale in step 1
|
||||
* In step 2, use `akaunting` as the database schema name and leave the other fields unchanged (they should have auto-populated based on the environment variables in the deployment)
|
||||
* In step 3, fill in whatever you desire for company and admin user information
|
||||
|
||||
For more, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech).
|
||||
|
||||
24
compose.yml
24
compose.yml
@ -1,7 +1,7 @@
|
||||
---
|
||||
services:
|
||||
app:
|
||||
image: docker.io/akaunting/akaunting:latest
|
||||
image: docker.io/akaunting/akaunting:3.1.19
|
||||
networks:
|
||||
- proxy
|
||||
- backend
|
||||
@ -31,12 +31,12 @@ services:
|
||||
## Enable backups: https://docs.coopcloud.tech/maintainers/handbook/#how-do-i-configure-backuprestore
|
||||
# - "backupbot.backup=true"
|
||||
# - "backupbot.backup.path=/some/path"
|
||||
# healthcheck:
|
||||
# test: ["CMD", "curl", "-f", "http://localhost"]
|
||||
# interval: 30s
|
||||
# timeout: 10s
|
||||
# retries: 10
|
||||
# start_period: 1m
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost/serviceworker.js"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 10
|
||||
start_period: 1m
|
||||
volumes:
|
||||
- akaunting-data:/var/www/html
|
||||
secrets:
|
||||
@ -57,6 +57,11 @@ services:
|
||||
deploy:
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
labels:
|
||||
backupbot.backup: "${ENABLE_BACKUPS:-true}"
|
||||
backupbot.backup.pre-hook: "mariadb-dump --single-transaction -u root -p\"$$(cat /run/secrets/mysql_root_password)\" akaunting | gzip > /var/lib/mysql/dump.sql.gz"
|
||||
backupbot.backup.volumes.akaunting-db.path: "dump.sql.gz"
|
||||
backupbot.restore.post-hook: "gzip -d /var/lib/mysql/dump.sql.gz && mariadb -u root -p\"$$(cat /run/secrets/mysql_root_password)\" akaunting < /var/lib/mysql/dump.sql && rm -f /var/lib/mysql/dump.sql"
|
||||
environment:
|
||||
- MYSQL_DATABASE=akaunting
|
||||
- MYSQL_USER=admin
|
||||
@ -65,11 +70,6 @@ services:
|
||||
secrets:
|
||||
- mysql_password
|
||||
- mysql_root_password
|
||||
labels:
|
||||
- "backupbot.backup=true"
|
||||
- "backupbot.backup.pre-hook=mariadb-dump --single-transaction -u root -p\"$$(cat /run/secrets/mysql_root_password)\" akaunting | gzip > /var/lib/mysql/dump.sql.gz"
|
||||
- "backupbot.backup.volumes.akaunting-db.path=dump.sql.gz"
|
||||
- "backupbot.restore.post-hook=gzip -d /var/lib/mysql/dump.sql.gz && mariadb -u root -p\"$$(cat /run/secrets/mysql_root_password)\" akaunting < /var/lib/mysql/dump.sql && rm -f /var/lib/mysql/dump.sql"
|
||||
|
||||
volumes:
|
||||
akaunting-db:
|
||||
|
||||
Reference in New Issue
Block a user