mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-09 22:41:03 +01:00
27 lines
654 B
Django/Jinja
27 lines
654 B
Django/Jinja
version: '3.7'
|
|
|
|
services:
|
|
|
|
{% include 'templates/docker-{{ database_type }}-service.yml.j2' %}
|
|
|
|
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
|
|
{% include 'templates/docker-networks-for-container.yml.j2' %}
|
|
{% include 'templates/docker-depends-on-central-database.yml.j2' %}
|
|
|
|
volumes:
|
|
data:
|
|
{% include 'templates/docker-database-volume.yml.j2' %}
|
|
|
|
{% include 'templates/docker-networks-for-role.yml.j2' %} |