02_docker.ymlΒΆ

---
- name: "🧩 load docker, db and proxy for {{ application_id }}"
  include_role:
    name: sys-stk-full
  vars:
    compose_handlers_flush: true
    webserver_vhost_flavour: "basic"
    application_id: "web-app-discourse"

- name: "πŸ“ Create discourse network {{ DISCOURSE_NETWORK }} for launcher to attach"
  include_tasks:
    file: "{{ lookup('path_absolute', 'roles/sys-svc-compose/tasks/utils/network/create.yml') }}"
    apply:
      delegate_to: "{{ STACK_HOST }}"
      run_once: true
  vars:
    network_role_id: "{{ application_id }}"

- name: "▢️ Run the standalone Discourse launcher container"
  include_tasks: 03_launcher.yml
  when: IS_STACK_HOST | bool