From f97eb0e8ed8d845bb49c99814ef53edf78397496 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Sat, 9 Feb 2019 11:20:11 +0100 Subject: [PATCH] Initial matrix/riot stuff. --- roles/docker/tasks/services/matrix_riot.yml | 35 +++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 roles/docker/tasks/services/matrix_riot.yml diff --git a/roles/docker/tasks/services/matrix_riot.yml b/roles/docker/tasks/services/matrix_riot.yml new file mode 100644 index 00000000..0b19bf4a --- /dev/null +++ b/roles/docker/tasks/services/matrix_riot.yml @@ -0,0 +1,35 @@ +--- + +- name: matrix network + docker_network: + name: matrix + +- name: matrix database volume + docker_volume: + name: matrix_db + +- name: matrix container + docker_container: + name: matrix + image: matrixdotorg/synapse:latest + env: + SYNAPSE_SERVER_NAME: my.matrix.host + SYNAPSE_REPORT_STATS: no + SYNAPSE_ENABLE_REGISTRATION: yes + SYNAPSE_LOG_LEVEL: INFO + POSTGRES_PASSWORD: "{{ postgres_passwords.matrix }}" + +- name: matrix database container + docker_container: + name: matrix_db + image: postgres:10 + state: started + restart_policy: always + networks: + - name: nextcloud + volumes: + - matrix_db:/var/lib/postgresql/data + env: + POSTGRES_DB: somethingelse + POSTGRES_USER: matrix + POSTGRES_PASSWORD: "{{ postgres_passwords.matrix }}"