Solved bug

This commit is contained in:
Kevin Veen-Birkenbach 2024-01-18 18:59:11 +01:00
parent 1f41d3a6bc
commit b41e63fb8a
4 changed files with 16 additions and 4 deletions

View File

@ -22,6 +22,17 @@
database_name: "{{ item.database_name }}"
loop: "{{ bridges }}"
# The following taks are necessary because a clean setup is necessary
- name: shut down docker compose project
command:
cmd: docker-compose -p "{{docker_compose_project_name}}" down
chdir: "{{ docker_compose_instance_directory }}"
- name: "cleanup project folder"
file:
path: "{{docker_compose_instance_directory}}"
state: absent
- name: "create registrations folder"
file:
path: "{{docker_compose_instance_directory}}registrations"
@ -41,6 +52,7 @@
dest: "{{docker_compose_instance_directory}}{{item.bridge_name}}/config.yaml"
notify: docker compose project setup
loop: "{{ bridges }}"
notify: docker compose project setup
- name: add element configuration
template:
@ -50,13 +62,13 @@
- name: add synapse homeserver configuration
template:
src: "synapse.homeserver.config.j2"
src: "synapse/homeserver.yaml.j2"
dest: "{{docker_compose_instance_directory}}homeserver.yaml"
notify: docker compose project setup
- name: add synapse log configuration
template:
src: "synapse.log.config.j2"
src: "synapse/log.config.j2"
dest: "{{docker_compose_instance_directory}}{{synapse_domain}}.log.config"
notify: docker compose project setup

View File

@ -6,7 +6,7 @@ services:
synapse:
image: matrixdotorg/synapse:latest
container_name: mautrix-synapse
container_name: matrix-synapse
restart: {{docker_restart_policy}}
logging:
driver: journald
@ -25,7 +25,7 @@ services:
element:
image: vectorim/element-web:latest
container_name: mautrix-element
container_name: matrix-element
restart: {{docker_restart_policy}}
volumes:
- ./element-config.json:/app/config.json