mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-02-23 12:51:54 +01:00
21 lines
683 B
Django/Jinja
21 lines
683 B
Django/Jinja
services:
|
|
|
|
{% include 'roles/docker-central-database/templates/services/' + database_type + '.yml.j2' %}
|
|
|
|
application:
|
|
image: yourls:{{applications.yourls.version}}
|
|
{% include 'roles/docker-compose/templates/services/base.yml.j2' %}
|
|
ports:
|
|
- "127.0.0.1:{{http_port}}:80"
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://127.0.0.1/admin/"]
|
|
interval: 1m
|
|
timeout: 10s
|
|
retries: 3
|
|
|
|
{% include 'templates/docker/container/depends-on-just-database.yml.j2' %}
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
|
|
|
{% include 'templates/docker/compose/volumes-just-database.yml.j2' %}
|
|
{% include 'templates/docker/compose/networks.yml.j2' %}
|