2023-12-30 15:22:18 +01:00
|
|
|
version: '3.7'
|
|
|
|
|
|
|
|
services:
|
|
|
|
application:
|
|
|
|
image: docker.io/akaunting/akaunting:{{version_akaunting}}
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
ports:
|
|
|
|
- 127.0.0.1:{{http_port}}:80
|
|
|
|
volumes:
|
|
|
|
- data:/var/www/html
|
|
|
|
restart: unless-stopped
|
|
|
|
env_file:
|
|
|
|
- env/run.env
|
|
|
|
environment:
|
|
|
|
- AKAUNTING_SETUP
|
2023-12-31 11:14:18 +01:00
|
|
|
{% if not ( enable_central_database | lower | bool ) %}
|
2023-12-30 15:22:18 +01:00
|
|
|
depends_on:
|
|
|
|
- database
|
|
|
|
|
|
|
|
{% include 'templates/docker-mariadb-service.yml.j2' %}
|
2023-12-31 11:14:18 +01:00
|
|
|
{% endif %}
|
2023-12-30 15:22:18 +01:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
data:
|
2023-12-31 11:14:18 +01:00
|
|
|
{% if not ( enable_central_database | lower | bool ) %}
|
|
|
|
database:
|
|
|
|
{% endif %}
|