mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Refactored ws implementation to use it in mastodon and in new espocrm role
This commit is contained in:
@@ -1,27 +1,26 @@
|
||||
# ./roles/docker-espocrm/tasks/main.yml
|
||||
---
|
||||
- name: "include docker-central-database"
|
||||
include_role:
|
||||
name: docker-central-database
|
||||
|
||||
# -- Nginx reverse proxy and Let's Encrypt certificates (same pattern as the Gitea role) --
|
||||
- name: "include role nginx-domain-setup for {{ application_id }}"
|
||||
include_role:
|
||||
- name: "Include setup for domain '{{ domain }}'"
|
||||
include_role:
|
||||
name: nginx-domain-setup
|
||||
vars:
|
||||
domain: "{{ domains[application_id] }}"
|
||||
http_port: "{{ ports.localhost.http[application_id] }}"
|
||||
ws_path: "/ws"
|
||||
ws_port: "{{ ports.localhost.websocket[application_id] }}"
|
||||
client_max_body_size: "100m"
|
||||
vhost_flavour: "ws_generic"
|
||||
domain: "{{ domains[application_id] }}"
|
||||
http_port: "{{ ports.localhost.http[application_id] }}"
|
||||
|
||||
# -- Copy docker-compose.yml and .env --
|
||||
- name: "copy docker-compose.yml and env file"
|
||||
include_tasks: copy-docker-compose-and-env.yml
|
||||
|
||||
# -- Ensure containers are (re)started after the initial setup --
|
||||
- name: flush docker service
|
||||
meta: flush_handlers
|
||||
when: applications.espocrm.setup | bool
|
||||
|
||||
# -- Run database initialisation or upgrade --
|
||||
- name: "run database setup / upgrade"
|
||||
command:
|
||||
cmd: "docker compose run --rm web php command.php upgrade"
|
||||
|
Reference in New Issue
Block a user