mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-04-28 18:30:24 +02:00
29 lines
913 B
YAML
29 lines
913 B
YAML
---
|
|
- name: "include docker-central-database"
|
|
include_role:
|
|
name: docker-central-database
|
|
|
|
- name: "Include setup for domain '{{ domain }}'"
|
|
include_role:
|
|
name: nginx-domain-setup
|
|
vars:
|
|
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] }}"
|
|
|
|
- name: "copy docker-compose.yml and env file"
|
|
include_tasks: copy-docker-compose-and-env.yml
|
|
|
|
- name: flush docker service
|
|
meta: flush_handlers
|
|
when: applications.espocrm.setup | bool
|
|
|
|
- name: "run database setup / upgrade"
|
|
command:
|
|
cmd: "docker compose run --rm web php command.php upgrade"
|
|
chdir: "{{ docker_compose.directories.instance }}"
|
|
when: applications.espocrm.setup | bool
|