Fixing riot and matrix stuff

This commit is contained in:
Jesper Hess 2019-02-09 17:00:47 +01:00
parent ec930a6f0f
commit 6805197c31
Signed by untrusted user: graffen
GPG key ID: 351A89E40D763F0F

View file

@ -14,23 +14,26 @@
- name: upload riot config.json - name: upload riot config.json
template: template:
src: files/riot-config.json src: files/configs/riot-config.json
dest: /var/lib/docker/volumes/riot_app/data/config.json dest: /var/lib/docker/volumes/riot_app/_data/config.json
- name: upload riot.im.conf - name: upload riot.im.conf
template: template:
src: files/riot.im.conf src: files/configs/riot.im.conf
dest: /var/lib/docker/volumes/riot_app/data/riot.im.conf dest: /var/lib/docker/volumes/riot_app/_data/riot.im.conf
- name: matrix container - name: matrix container
docker_container: docker_container:
name: matrix name: matrix
image: matrixdotorg/synapse:latest image: matrixdotorg/synapse:latest
networks:
- name: matrix
env: env:
SYNAPSE_SERVER_NAME: {{ matrix.domain }} SYNAPSE_SERVER_NAME: "{{ matrix.domain }}"
SYNAPSE_REPORT_STATS: no SYNAPSE_REPORT_STATS: False
SYNAPSE_ENABLE_REGISTRATION: yes SYNAPSE_ENABLE_REGISTRATION: True
SYNAPSE_LOG_LEVEL: INFO SYNAPSE_LOG_LEVEL: INFO
POSTGRES_HOST: "matrix_db"
POSTGRES_PASSWORD: "{{ postgres_passwords.matrix }}" POSTGRES_PASSWORD: "{{ postgres_passwords.matrix }}"
- name: matrix database container - name: matrix database container
@ -57,6 +60,8 @@
networks: networks:
- name: matrix - name: matrix
- name: external_services - name: external_services
volumes:
- riot_app:/data
env: env:
VIRTUAL_HOST: "{{ riot.domain }}" VIRTUAL_HOST: "{{ riot.domain }}"
LETSENCRYPT_HOST: "{{ riot.domain }}" LETSENCRYPT_HOST: "{{ riot.domain }}"