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: 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: docker_volume:
name: matrix_db 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 - name: matrix container
docker_container: docker_container:
name: matrix name: matrix
@ -26,10 +40,21 @@
state: started state: started
restart_policy: always restart_policy: always
networks: networks:
- name: nextcloud - name: matrix
volumes: volumes:
- matrix_db:/var/lib/postgresql/data - matrix_db:/var/lib/postgresql/data
env: env:
POSTGRES_DB: somethingelse POSTGRES_DB: somethingelse
POSTGRES_USER: matrix POSTGRES_USER: matrix
POSTGRES_PASSWORD: "{{ postgres_passwords.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