mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-12-09 10:56:01 +00:00
Includes: - Rewrite of test-deploy workflow to use isolated inner dockerd with privileged mode. - Switch logging drivers to 'json-file' when IS_CONTAINER=true for compatibility with non-systemd CI runners. - Adjust Dockerfile to install docker CLI and simplify package setup. - Improve inventory creation and deploy steps for CI stability. - Fully compatible with Ansible 2.20 variable handling. Conversation reference: https://chatgpt.com/share/6930e285-9604-800f-aad8-7a81c928548c
13 lines
410 B
Django/Jinja
13 lines
410 B
Django/Jinja
{# Base for docker services #}
|
|
|
|
restart: {{ docker_restart_policy | default(DOCKER_RESTART_POLICY) }}
|
|
{% if application_id | has_env %}
|
|
env_file:
|
|
- "{{ docker_compose.files.env }}"
|
|
{% endif %}
|
|
logging:
|
|
driver: {{ "json-file" if IS_CONTAINER | bool else 'journald' }}
|
|
{% filter indent(4) %}
|
|
{% include 'roles/docker-container/templates/resource.yml.j2' %}
|
|
{% endfilter %}
|
|
{{ "\n" }} |