Add riot.im.conf and stuff to matrix role

This commit is contained in:
Jesper Hess 2019-02-09 15:43:15 +01:00
parent e371b11e84
commit f30f07eacb
Signed by untrusted user: graffen
GPG Key ID: 351A89E40D763F0F
2 changed files with 32 additions and 1 deletions

View File

@ -0,0 +1,6 @@
-p 8765
-A matrix
-c 3500
--ssl
--cert /data/fullchain.pem
--key /data/key.pem

View File

@ -8,6 +8,20 @@
docker_volume:
name: matrix_db
- name: riot volume
docker_volume:
name: riot_app
- name: upload riot config.json
template:
src: files/riot-config.json
dest: /var/lib/docker/volumes/riot_app/data/config.json
- name: upload riot.im.conf
template:
src: files/riot.im.conf
dest: /var/lib/docker/volumes/riot_app/data/riot.im.conf
- name: matrix container
docker_container:
name: matrix
@ -26,10 +40,21 @@
state: started
restart_policy: always
networks:
- name: nextcloud
- name: matrix
volumes:
- matrix_db:/var/lib/postgresql/data
env:
POSTGRES_DB: somethingelse
POSTGRES_USER: matrix
POSTGRES_PASSWORD: "{{ postgres_passwords.matrix }}"
- name: riot container
docker_container:
name: riot_app
image: avhost/docker-matrix-riot
state: started
restart_policy: always
networks:
- name: matrix
- name: external_services