Files
computer-playbook/roles/web-app-akaunting/templates/docker-compose.yml.j2
Kevin Veen-Birkenbach 5287bb4d74 Refactor Akaunting role and CSP handling
- Improved CSP filter to properly include web-svc-cdn and use protocol-aware domains
- Added Todo.md with redis and OIDC notes
- Enhanced Akaunting role config with CSP flags and redis option
- Updated schema to include app_key validation
- Reworked tasks to handle first-run marker logic cleanly
- Fixed docker-compose template (marker, healthcheck, setup flag)
- Expanded env.j2 with cache, email, proxy, and redis options
- Added javascript.js.j2 template for SSO warning
- Introduced structured vars for Akaunting role
- Removed deprecated update-repository-with-files.yml task

See conversation: https://chatgpt.com/share/68af00df-2c74-800f-90b6-6ac5b29acdcb
2025-08-27 14:58:44 +02:00

27 lines
970 B
Django/Jinja

{% include 'roles/docker-compose/templates/base.yml.j2' %}
application:
{% include 'roles/docker-container/templates/base.yml.j2' %}
{% set container_port = 80 %}
container_name: {{ AKAUNTING_CONTAINER }}
image: "{{ AKAUNTING_IMAGE }}:{{ AKAUNTING_VERSION }}"
build:
context: {{ docker_repository_path }}
dockerfile: Dockerfile
ports:
- 127.0.0.1:{{ ports.localhost.http[application_id] }}:{{ container_port }}
volumes:
- data:/var/www/html
{% if akaunting_setup_enabled | bool %}
environment:
- AKAUNTING_SETUP=true
{% endif %}
{% include 'roles/docker-container/templates/healthcheck/tcp.yml.j2' %}
{% include 'roles/docker-container/templates/networks.yml.j2' %}
{% include 'roles/docker-container/templates/depends_on/dmbs_excl.yml.j2' %}
{% include 'roles/docker-compose/templates/volumes.yml.j2' %}
data:
name: {{ AKAUNTING_VOLUME }}
{% include 'roles/docker-compose/templates/networks.yml.j2' %}