mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-07-08 01:25:14 +02:00
17 lines
690 B
Django/Jinja
17 lines
690 B
Django/Jinja
{% include 'roles/docker-compose/templates/base.yml.j2' %}
|
|
application:
|
|
{% set container_port = 80 %}
|
|
{% include 'roles/docker-container/templates/base.yml.j2' %}
|
|
image: "{{ applications[application_id].images[application_id] }}"
|
|
ports:
|
|
- "127.0.0.1:{{ports.localhost.http[application_id]}}:{{ container_port }}"
|
|
volumes:
|
|
- data:/var/www/html
|
|
{% include 'roles/docker-container/templates/depends_on_dmbs.j2' %}
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
|
{% include 'roles/docker-container/templates/healthcheck/tcp.yml.j2' %}
|
|
{% include 'templates/docker/compose/volumes.yml.j2' %}
|
|
data:
|
|
|
|
{% include 'templates/docker/compose/networks.yml.j2' %}
|