Great docker refactoring

This commit is contained in:
2025-07-06 18:53:45 +02:00
parent bd9e43506f
commit 0347d238c2
27 changed files with 107 additions and 119 deletions

View File

@@ -0,0 +1,36 @@
---
{% if database | bool %}
{% raw %}
- name: "include docker-central-database"
include_role:
name: docker-central-database
when: run_once_docker_{% endraw %}{{ application_id }}{% raw %} is not defined
- name: "include role nginx-domain-setup for {{application_id}}"
include_role:
name: nginx-domain-setup
vars:
domain: "{{ domains | get_domain(application_id) }}"
http_port: "{{ ports.localhost.http[application_id] }}"
when: run_once_docker_{% endraw %}{{ application_id }}{% raw %} is not defined
{% endraw %}
{% else %}
{% raw %}
- name: "include docker-compose role"
include_role:
name: docker-compose
when: run_once_docker_{% endraw %}{{ application_id }}{% raw %} is not defined
{% endraw %}
{% endif %}
{% raw %}
- name: run the {% raw %}portfolio{% endraw %} tasks once
set_fact:
run_once_docker_portfolio: true
when: run_once_docker_{% endraw %}{{ application_id }}{% raw %} is not defined
{% endraw %}