mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 19:01:54 +00:00
The akaunting service is built from the akaunting/docker repository (ref master), whose Dockerfile downloads the latest Akaunting release into /var/www/html, the shared data volume. Since 2026-10-26 that Dockerfile builds on php:8.2, and Akaunting 3.3.0 (released 2026-10-27) requires PHP >= 8.2. The swarm setup job instead ran the upstream tag akaunting/akaunting:3.1.21 (PHP 8.1.34) against the same volume. It executed the 3.3.0 code there and failed with "Ask your hosting provider to use PHP 8.2.0 or higher" (main run 40507642995, Akaunting#0). Compose mode was unaffected because its setup uses `compose run akaunting`, i.e. the built image. Read the image from the service spec and start the setup job with it, so code and runtime always come from the same build. Drop the now unused AKAUNTING_IMAGE/AKAUNTING_VERSION vars. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
24 lines
1.6 KiB
YAML
24 lines
1.6 KiB
YAML
---
|
|
application_id: "web-app-akaunting"
|
|
|
|
database_password: "{{ lookup('config', application_id, 'secrets.credentials.database_password') }}" # nocheck: lookup-config-path
|
|
|
|
AKAUNTING_URL: "{{ lookup('tls', application_id, 'url.base') }}"
|
|
AKAUNTING_REPOSITORY: "{{ lookup('config', 'web-app-akaunting', 'services.akaunting.repository') }}"
|
|
AKAUNTING_REF: "{{ lookup('config', 'web-app-akaunting', 'services.akaunting.ref') }}"
|
|
AKAUNTING_CONTAINER: "{{ lookup('config', application_id, 'services.akaunting.name') }}"
|
|
AKAUNTING_VOLUME: "{{ lookup('volume', application_id, 'data').name }}"
|
|
AKAUNTING_COMPANY_NAME: "{{ lookup('config', application_id, 'services.akaunting.company.name') }}"
|
|
AKAUNTING_COMPANY_EMAIL: "{{ lookup('config', application_id, 'services.akaunting.company.email') }}"
|
|
AKAUNTING_ADMIN_EMAIL: "{{ lookup('config', application_id, 'services.akaunting.setup_admin_email') }}"
|
|
AKAUNTING_ADMIN_PASSWORD: "{{ lookup('config', application_id, 'secrets.credentials.setup_admin_password') }}"
|
|
AKAUNTING_SETUP_MARKER: "{{ [ akaunting_volume_mountpoint.stdout | trim, '.akaunting_installed' ] | path_join }}"
|
|
AKAUNTING_SERVICE: "{{ lookup('container_service', application_id, 'akaunting') }}"
|
|
AKAUNTING_SETUP_JOB: "{{ AKAUNTING_SERVICE }}_setup"
|
|
AKAUNTING_ENTRYPOINT: "/usr/local/bin/akaunting.sh"
|
|
AKAUNTING_REPLICAS: "{{ groups[application_id] | length }}"
|
|
AKAUNTING_APP_KEY: "{{ lookup('config', application_id, 'secrets.credentials.app_key') }}"
|
|
AKAUNTING_CACHE_DRIVER: "{{ 'redis' if lookup('config',application_id, 'services.redis.enabled') else 'file' }}"
|
|
|
|
AKAUNTING_LDAP_ENABLED: "{{ lookup('config', application_id, 'services.ldap.enabled') }}"
|